Some information about locale (was Re: [Python-Dev] repr vs. str and locales again)

Peter Funk pf@artcom-gmbh.de
Mon, 22 May 2000 17:01:50 +0200 (MEST)


Hi, 

Guido van Rossum:
> > pf@pefunbk> python 
> > Python 1.5.2 (#1, Jul 23 1999, 06:38:16)  [GCC egcs-2.91.66 19990314/Linux (egcs- on linux2
> > Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> > >>> import string
> > >>> print string.upper("ä")
> > Ä
> > >>> 
> 
> This threw me off too.  However try this:
> 
> python -c 'print "ä".upper()'

Yes, you are right.  :-(

Conclusion:  If the 'locale' module would ever become depreciated  
then ...ummm...  we poor mortals will simply have to add a line
'import readline' to our Python programs.  Nifty... ;-)

Regards, Peter