Wishlist: string attributes
Stephen Boulet
stephen at theboulets.net
Wed Mar 26 00:03:36 EST 2003
Sounds great. I'm glad that people are working on it.
-- Stephen
Raymond Hettinger wrote:
> "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.).
>
>
> 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