STINNER Victor <victor.stin...@haypocalc.com> added the comment: > Victor, I'm not sure whether you are proposing that > display_hook_ascii.patch is included into Python. IIUC, this patch > breaks PEP3138, so it clearly must be rejected. > > Overall, I fail to see the bug in this report. Python 3.0 works as > designed as shown here.
The idea is to avoid unicode error (by replacing not printable characters by their code in hexadecimal) when the display hook tries to display a message which is not printable in the terminal charset. It's just to make Python3 interpreter a little bit more "user friendly" on Windows. Problem: use different (encoding) rule for the display hook and for print() may disturb new users (Why does ">>> chr(...)" work whereas ">>> print(chr(...))" fails?). _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5110> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com