[Python-Dev] Re: String module

François Pinard pinard@iro.umontreal.ca
29 May 2002 20:03:57 -0400

[Guido van Rossum]

> Perhaps we should add isalnum, iscntrl, is graph, to match <ctype.h>?
> Or perhaps not?  (Maybe I'd also like to add isword(), which would be
> isalnum() or '_' -- this is the definition of \w in the re module.)

This reminds me that I often miss, in the standard `ctype.h' and related,
a function that would un-combine a character into its base character and
its diacritic, and the complementary re-combining function.

Even if this might be easier for Latin-1, it is difficult to design
something general enough.  Characters may have a more complex structure
than a mere base and single diacritic.  I do not know what to suggest.

François Pinard   http://www.iro.umontreal.ca/~pinard