[issue17828] More informative error handling when encoding and decoding

Nick Coghlan report at bugs.python.org
Tue Nov 5 16:08:34 CET 2013


Nick Coghlan added the comment:

Updated patch adds systematic tests for the new error handling to test_codecs.TransformTests

I also moved the codecs changes up to a "Codec handling improvements" section.

My rationale for doing that is that this is actually a pretty significant usability enhancement and Python 3 codec model clarification for heavy users of binary codecs coming from Python 2, and because I also plan to follow up on this issue by bringing back the shorthand aliases for these codecs that were removed in issue 10807 (thus closing issue 7475).

If issue 15216 gets finished (changing stream encodings after creation) that would also be a substantial enhancement worth mentioning here.

----------
Added file: http://bugs.python.org/file32509/issue17828_improved_codec_errors_v4.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17828>
_______________________________________


More information about the Python-bugs-list mailing list