[issue17828] More informative error handling when encoding and decoding

Nick Coghlan report at bugs.python.org
Wed Nov 13 14:32:36 CET 2013


Nick Coghlan added the comment:

Patch for the final version that I'm about to commit.

- I realised the exception chaining would only trigger for the encode() and decode() methods, when it was equally applicable to the codecs.encode() and codecs.decode() functions, so I updated the test cases and moved it accordingly.

- reworded the What's New text to better clarify the historical confusion around the nature of the codecs module that these changes are intended to rectify (since the intent is clear from the existence of codecs.encode and codecs.decode and their coverage in the test suite since Python 2.4).

----------
stage: needs patch -> commit review
Added file: http://bugs.python.org/file32595/issue17828_improved_codec_errors_v7.diff

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


More information about the Python-bugs-list mailing list