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 <1514921414.89.0.467229070634.issue32456@psf.upfronthosting.co.za>
In-reply-to
Content
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>)
History
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: <1514921414.89.0.467229070634.issue32456@psf.upfronthosting.co.za>
2018-01-02 19:30:14martin.panterlinkissue32456 messages
2018-01-02 19:30:14martin.pantercreate