[Tutor] wiki madness

Kirk Bailey idiot1 at netzero.net
Sat Aug 9 17:07:40 EDT 2003


in 1.6.2 string.lowercase and string.uppercase exist, but
not string.punctuation.

 >>> string.lowercase
'abcdefghijklmnopqrstuvwxyz'
 >>> string.uppercase
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 >>> string.punctuation
Traceback (innermost last):
   File "<stdin>", line 1, in ?
AttributeError: punctuation
 >>> string.punctuation
Traceback (innermost last):
   File "<stdin>", line 1, in ?
AttributeError: punctuation


Jeff Shannon wrote:

> Kirk Bailey wrote:
> 
>>> * no need to define caps, just use string.ascii_uppercase (and 
>>> lowercase is there too)
>>>
>> 1. nosuchfunction listed in the string module docs. Please advise.
> 
> 
> 
>  >>> import string
>  >>> string.ascii_lowercase
> 'abcdefghijklmnopqrstuvwxyz'
>  >>> string.ascii_uppercase
> 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
>  >>> string.punctuation
> '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'
>  >>>
> 
> They're data (strings), not functions, so they'd probably be listed in a 
> different part of the docs.
> 
> Jeff Shannon
> Technician/Programmer
> Credit International
> 
> 
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
> 
> 

-- 

-- 

end

Cheers!
         Kirk D Bailey

  +                              think                                +
   http://www.howlermonkey.net  +-----+        http://www.tinylist.org
   http://www.listville.net     | BOX |  http://www.sacredelectron.org
   Thou art free"-ERIS          +-----+     'Got a light?'-Promethieus
  +                              think                                +

Fnord.




More information about the Tutor mailing list