[Python-Dev] String module

Guido van Rossum guido@python.org
Thu, 30 May 2002 14:35:26 -0400

> > OK.  Nothing needs to be done to vary them by locale as long as you
> > use the isxxx macros from <ctype.h>.  I think all that's needed is to
> > add the missing ones.
> It's not that hard once you know what to do.
> See www.python.org/sf/562501 

Thanks!  But now we have a diverging set of isxxx methods for 8-bit
strings and Unicode.  I really don't know what the equivalent of these
(ispunct, iscntrl, isgraph, isprint) is in Unicode -- maybe MAL or MvL
know?  Unicode also has a wider definition of digits; do we want to
extend isxdigit() for that?  (Probably not, but I'm not sure.)

Someone commented that isxdigit is a poor name.  OTOH it's what C
uses.  I'm not sure what to say.

--Guido van Rossum (home page: http://www.python.org/~guido/)