[issue26917] Inconsistency in unicodedata.normalize()?

Armin Rigo report at bugs.python.org
Tue May 3 05:01:37 EDT 2016


Armin Rigo added the comment:

Note: the examples can also be written in this clearer way on Python 3:

>>> from unicodedata import normalize
>>> print(ascii(normalize("NFC", "---\uafb8\u11a7---")))
'---\uafb8\u11a7---'

>>> print(ascii(normalize("NFC", "---\uafb8\u11a7---\U0002f8a1")))
'---\uafb8---\u393a'

----------

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


More information about the Python-bugs-list mailing list