Pekka Klärck <pekka.kla...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue33317>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to