[issue28925] Confusing exception from cPickle on reduce failure
Serhiy Storchaka
report at bugs.python.org
Thu Dec 15 05:33:46 EST 2016
Serhiy Storchaka added the comment:
Perhaps it was added for debugging. Exceptions that don't define own __new__ and __init__ inherit them from BaseException. BaseException constructor saves positional arguments as the args attribute. But not all standard exceptions accept arbitrary number of positional arguments. For example UnicodeEncodeError and UnicodeDecodeError don't work.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28925>
_______________________________________
More information about the Python-bugs-list
mailing list