deprecated string module issue

GrayShark howe.steven at gmail.com
Thu Jun 24 13:39:13 EDT 2010


On Jun 24, 10:06 am, GrayShark <howe.ste... at gmail.com> wrote:
> In my code I have:
> from string import lower, upper
>
> When I use pylint on the program I get just one warning:
>
> Uses of a deprecated module 'string'.
>
> Iv'e noted that many if not all string functions are now in _builtin_.
> Where are the constants?
>
> Thanks
> Steven

Sorry, I meant "from string import lowercase, uppercase"

As I was joining these two, I just changed the import to 'letters'

So if the constants are not deprecated, why is the module? Is some
other
state then deprecated needed to describe functions and/or methods
deprecated,
but not whole modules?

It just seems wrong, this all or nothing state.

Steven



More information about the Python-list mailing list