[issue5828] Invalid behavior of unicode.lower

Walter Dörwald <report@bugs.python.org> at psf.upfronthosting.co.za Walter Dörwald <report@bugs.python.org> at psf.upfronthosting.co.za
Sat Apr 25 11:16:32 CEST 2009


Walter Dörwald <walter at livinglogic.de> added the comment:

Here is a third version of the patch. AFAICT the logic of the unicode
database is as follows:

* If the NODELTA_MASK is not set, delta is an offset.
* If NODELTA_MASK is set and delta is != 0, delta is the
upper/lower/title case character.
* If NODELTA_MASK is set and delta is == 0, there is no
upper/lower/title case variant (i.e. the method returns the original
character.

Is this the correct interpretation?

I've also updated the testsuite (changed the checksum and added a new test).

(BTW, the patch is against the py3k branch).

----------
Added file: http://bugs.python.org/file13762/diff3.txt

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


More information about the Python-bugs-list mailing list