[docs] [issue28403] Porting guide: disabling & warning on implicit unicode conversions

Marc-Andre Lemburg report at bugs.python.org
Mon Oct 10 11:02:10 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue28403>
_______________________________________


More information about the docs mailing list