Marc-Andre Lemburg added the comment: On 10.10.2016 15:08, Petr Viktorin wrote: > If sys.setdefaultencoding('undefined') breaks parts of the standard library, > it might be OK for smaller scripts but I fear it won't help big projects much.
That's true. It does break the stdlib (the codec was originally added in order to test exactly this scenario). A new codec "ascii-warn" could easily be added, based on the code used for "undefined". ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28403> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com