Uses of a deprecated module 'string'
James Mills
prologic at shortcircuit.net.au
Tue Jun 22 17:27:15 EDT 2010
On Wed, Jun 23, 2010 at 7:11 AM, Steven Howe <howe.steven at gmail.com> wrote:
> Hi, I'm trying to import 'letters' from the string module.
> I get the following message:
>
> Uses of a deprecated module 'string'
>
> I realize the functionality of 'string' is now in the _builtin_. But are the
> constants. If so, what are they called. I tried 'letters', but got:
>
> NameError: name 'letters' is not defined
>
> Thanks for any help.
What python version ?
In python 3.1.x the "string" module is just a collection of string
constants which obviously still exists. I believe it's the use
of said "functions" from the old "string" module that are
deprecated.
cheers
James
More information about the Python-list
mailing list