From: Steven Howe on
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.

Steven Howe

From: James Mills on
On Wed, Jun 23, 2010 at 7:11 AM, Steven Howe <howe.steven(a)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
From: Thomas Jollans on
On 06/22/2010 11:11 PM, Steven Howe 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
>

>>> import string
>>> from pprint import pprint
>>> pprint(dir(string))
['Formatter',
'Template',
'_TemplateMetaclass',
'__builtins__',
'__doc__',
'__file__',
'__name__',
'__package__',
'_multimap',
'_re',
'ascii_letters',
'ascii_lowercase',
'ascii_uppercase',
'capwords',
'digits',
'hexdigits',
'maketrans',
'octdigits',
'printable',
'punctuation',
'whitespace']
>>>

Looks like `letters' has been renamed to `ascii_letters'.
From: rantingrick on
On Jun 22, 4:37 pm, Thomas Jollans <tho...(a)jollans.com> wrote:
> Looks like `letters' has been renamed to `ascii_letters'.


ASCII rubutted:
Really it's more like "asc-bye-bye_letters". They keep shoving me
more and more under the carpet! And that big fat glory hog Unicode is
really stating to get on my nerves!" Just what the heck makes him *so*
special anyway with his "squiggly" lines and accent marks? It's like a
on-going pronunciation tutorial for cry'in out loud! Is the world
suddenly moving BACKWARDS! Are we counter evolving? Ooo, Ooo, look
everybody i got squiggly lines too! ~~~~~~~

....read em and weep you fat @$$!
From: Stephen Hansen on
On 6/22/10 4:53 PM, rantingrick wrote:
> On Jun 22, 4:37 pm, Thomas Jollans <tho...(a)jollans.com> wrote:
>> Looks like `letters' has been renamed to `ascii_letters'.
>
>
> ASCII rubutted:
> Really it's more like "asc-bye-bye_letters". They keep shoving me
> more and more under the carpet! And that big fat glory hog Unicode is
> really stating to get on my nerves!" Just what the heck makes him *so*
> special anyway with his "squiggly" lines and accent marks? It's like a
> on-going pronunciation tutorial for cry'in out loud! Is the world
> suddenly moving BACKWARDS! Are we counter evolving? Ooo, Ooo, look
> everybody i got squiggly lines too! ~~~~~~~
>
> ...read em and weep you fat @$$!

You've already done this particularly offensive, unrealistic, culturally
imperialistic and nonsensical rant.

http://groups.google.com/group/comp.lang.python/browse_thread/thread/7dfa560c675b06b2/47ee7d03aa4c9b09

We really don't have to do it again. :)

Everyone knows you don't like unicode, man.

--

Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/