Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

Use ascii() in Python 3 if you want the behavior of repr() in Python 2. It 
escapes all non-ascii characters.

But escaping only combining characters in addition to non-printable characters 
in repr() looks an interesting idea.

----------
components: +Interpreter Core, Unicode
nosy: +benjamin.peterson, ezio.melotti, lemburg, serhiy.storchaka, vstinner
type:  -> enhancement
versions: +Python 3.8 -Python 3.4, Python 3.5, Python 3.6

_______________________________________
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