A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-May/004179.html below:

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

Some information about locale (was Re: [Python-Dev] repr vs. str and locales again) 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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4