[Python-Dev] other "magic strings" issues

Fred L. Drake, Jr. fdrake at acm.org
Mon Nov 10 09:25:06 EST 2003

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.  whitespace and
punctuation definately change for Unicode, so it's less clear that the
values belong in a base class.


Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation

More information about the Python-Dev mailing list