Nick Coghlan added the comment:

Updated patch (v5) with a more robust chaining mechanism provided as a private 
"_PyErr_TrySetFromCause" API. This version eliminates the previous whitelist in 
favour of checking directly for the ability to replace the exception with 
another instance of the same type without losing information.

This version also has more direct tests of the exception wrapping behaviour as 
a dedicated test class.

If I don't hear any objections in the next couple of days, I plan to commit 
this version.

----------
Added file: 
http://bugs.python.org/file32561/issue17828_improved_codec_errors_v5.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17828>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to