Py 3.3, unicode / upper()

Thomas Bach thbach at students.uni-mainz.de
Wed Dec 19 09:43:57 EST 2012


On Wed, Dec 19, 2012 at 06:23:00AM -0800, wxjmfauth at gmail.com wrote:
> I was suprised to discover this:
> 
> >>> 'Straße'.upper()
> 'STRASSE'
> 
> I really, really do not know what I should think about that.
> (It is a complex subject.) And the real question is why?

Because there is no definition for upper-case 'ß'. 'SS' is used as the
common replacement in this case. I think it's pretty smart! :)

Regards,
	Thomas.



More information about the Python-list mailing list