[issue4610] Unicode case mappings are incorrect

Alexander Belopolsky report at bugs.python.org
Mon Dec 6 19:42:17 CET 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

>> .swapcase() is just ...err... dumb^h^h^h^h questionably useful. 

> I agree with the rest of you that Python would be better-off
> without swapcase().

As long as str.upper/lower are based only on UnicodeData.txt 1-to-1 mappings, existence of str.swapcase() indicates to the users that they should not expect many-to-1 mappings.  Also it does seem to be occasionally used for testing.  -0 on removing it.

----------
nosy: +belopolsky

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4610>
_______________________________________


More information about the Python-bugs-list mailing list