[CentralOH] chr()/ord() Ugliness

Eric Floehr eric at intellovations.com
Mon Nov 11 16:41:29 CET 2013

> string.uppercase returns a string of all the capital letters in ASCII.

string.uppercase is locale-dependent, so while in most locales it will be
ASCII, it won't in all locales.

Because of that fact (i.e. a constant that changes :-), string.uppercase
(and lowercase and letters) have been removed from Python 3.

So if you want something that works on Python 2 and 3, you'll need to use
ascii_uppercase (or ascii_lowercase or ascii_letters).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/centraloh/attachments/20131111/d52e46b0/attachment.html>

More information about the CentralOH mailing list