[Python-Dev] A house upon the sand
Mon, 27 Nov 2000 15:30:04 -0500
[Barry A. Warsaw]
> I have noticed that I often define string constants like
> SPACE = ' '
> EMPTY = ''
> NL = '\n'
> just so I can write code like
> I doubt it's worth it, but maybe having a standard module called
> stringconstants.py with some of the more obvious choices would make
> things better?
-0. Then I'd expect to see
from stringconstants import *
at least once, which is at least once too often. Sick trick:
SPACE, TAB, NL = " \t\n"