This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients benjamin.peterson, ezio.melotti, lemburg, martin.panter, ncoghlan, serhiy.storchaka, vstinner
Date 2018-01-02.19:30:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
My guess is there is no message because in Python 3, errors are encoded according to PYTHONIOENCODING. Perhaps it works as you expect if you bypass sys.excepthook:

$ PYTHONIOENCODING=undefined python -c 'import sys, os; sys.excepthook = lambda *exc: os.write(2, ascii(exc).encode()); print(u"abc")'
(<class 'UnicodeError'>, UnicodeError('undefined encoding',), <traceback object at 0xb7037b94>)
Date User Action Args
2018-01-02 19:30:14martin.pantersetrecipients: + martin.panter, lemburg, ncoghlan, vstinner, benjamin.peterson, ezio.melotti, serhiy.storchaka
2018-01-02 19:30:14martin.pantersetmessageid: <>
2018-01-02 19:30:14martin.panterlinkissue32456 messages
2018-01-02 19:30:14martin.pantercreate