STINNER Victor <victor.stin...@haypocalc.com> added the comment:

Codec encoders reuse the same exception object for speed, but set some 
attributes (start, end and reason). Recreate the args tuple each time that a 
attribute is set. UnicodeEncodeError and UnicodeDecodeError should maybe 
override args getter to create a new tuple at each call.

----------

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

Reply via email to