[Python-Dev] other "magic strings" issues

Dan Sugalski dan at sidhe.org
Mon Nov 10 10:44:56 EST 2003

On Mon, 10 Nov 2003, Fred L. Drake, Jr. wrote:

> Skip Montanaro writes:
>  > Don't forget 'punctuation'.  Maybe it should be 'ascii_punctuation', since
>  > I'm sure there are other punctuation characters which would turn up in
>  > unicode.
> Ah, yes.
>  > If they are going to be attached to a class, why not to basestring?
> That makes sense for ascii_* and *digits, perhaps.

Digits change for Unicode as well. Plus they get potentially...
interesting in some cases, where the digit-ness of a character is arguably
contextually driven, but I think that can be ignored. Most of the time, at


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan at sidhe.org                         have teddy bears and even
                                      teddy bears get drunk

More information about the Python-Dev mailing list