Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

First, closures cannot be pickled. You have to pass self.__class__ as an 
argument.

Second, it will break compatibility with older Python versions. Pickles created 
in new Python could not be unpickled in older Pythons.

Third, it is the behavior which does not have precedents. Unpickling usually 
calls either just __new__() or both __new__() and __init__() of the same class.

----------

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

Reply via email to