Wishlist: string attributes

Terry Reedy tjreedy at udel.edu
Tue Mar 25 12:55:21 EST 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 strings:
>
> I can access string methods like (str.lower) but I would like to be
able to
> access all string module attributes without importing the string
module (like
> str.ascii_lowercase, str.whitespace, etc.).
>
> Not being a guru, are there any good reasons against?

These possible additions have been discussed among developers as part
of a possible future deprecation of the string module (3.0 at the
earliest).  I do not believe that there has been any definitive
resolution.  I think other issues are more pressing.

TJR






More information about the Python-list mailing list