[issue39750] UnicodeError becomes unpicklable if data is appended to args

Serhiy Storchaka report at bugs.python.org
Tue Feb 25 13:28:44 EST 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Yes, this is how exceptions are pickled. You save an information which which allows you to recreate the exception. If you fake args, you do not able to recreate it.

Just do not do this.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39750>
_______________________________________


More information about the Python-bugs-list mailing list