[Python-Dev] Re: String module

Neal Norwitz neal@metaslash.com
Thu, 30 May 2002 09:06:40 -0400

Guido van Rossum wrote:

> strop.letters etc. are fixed when locale.setconv(LC_CTYPE, ...) is
> used.  string.letters etc. are *also* fixed, but if string hasn't been
> imported yet when the locale is set, string gets the properly
> localized versions from strop (which does the right thing upon
> initialization to reflect the locale).  This mechanism would have to
> be copied into string.py somehow.

Michael also schooled me on this.  I made a comment on Thomas Heller's
patch http://python.org/sf/561832 to indicate this info.  His patch
adds letters, digits, etc. but not maketrans().