This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients erezinman, rhettinger, serhiy.storchaka
Date 2020-09-09.15:29:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599665347.64.0.691516593133.issue41751@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-09-09 15:29:07serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, erezinman
2020-09-09 15:29:07serhiy.storchakasetmessageid: <1599665347.64.0.691516593133.issue41751@roundup.psfhosted.org>
2020-09-09 15:29:07serhiy.storchakalinkissue41751 messages
2020-09-09 15:29:07serhiy.storchakacreate