[issue33317] `repr()` of string in NFC and NFD forms does not differ
Pekka Klärck
report at bugs.python.org
Fri Apr 20 04:53:49 EDT 2018
Pekka Klärck <pekka.klarck at gmail.com> added the comment:
Thanks for pointing out `ascii()`. Seems to do exactly what I want.
`repr()` showing combining characters would, in my opinion, still be useful to avoid problems like I demonstrated with unittest and pytest. I doubt it's a good idea with them to use `ascii()` instead of `repr()` by default because on Python 3 the latter generally works much better with non-ASCII text.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33317>
_______________________________________
More information about the Python-bugs-list
mailing list