Wishlist: string attributes

Raymond Hettinger vze4rx4y at verizon.net
Wed Mar 26 08:39:09 EST 2003


> So, in practice, I *DO* still need a string of "all letters", "all
> printable characters", and the like, for purposes such as this one --
> even though I had a complete complement of .isXXX methods too.  Guess
> I can always ''.join(filter(str.isXXX, allchars)), but I'd much
> rather have the needed strings ready in the str class as I now have
> them in the string module... is there any technical impediment to
> supplying them?

The character strings could be provided if needed.

If they are fixed, it may make sense to add them.
For functions like, isalpha(), the answer is locale
dependent.

Raymond Hettinger







More information about the Python-list mailing list