Wishlist: string attributes

Raymond Hettinger vze4rx4y at verizon.net
Wed Mar 26 01:32:48 CET 2003

"Stephen Boulet" <stephen.boulet at motorola.com> wrote in message
news:3E807948.5040401 at motorola.com...
> Being a big fan of string methods, here's what I'd like to see for python
> I can access string methods like (str.lower) but I would like to be able
> access all string module attributes without importing the string module
> str.ascii_lowercase, str.whitespace, etc.).

The plan is to use functions like str.isascii() instead of attributes.
I had already written the patch. The next step is to extend it so
that parallel functions are available for Unicode.

Raymond Hettinger

More information about the Python-list mailing list