Message376644
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. |
|
Date |
User |
Action |
Args |
2020-09-09 15:29:07 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, erezinman |
2020-09-09 15:29:07 | serhiy.storchaka | set | messageid: <1599665347.64.0.691516593133.issue41751@roundup.psfhosted.org> |
2020-09-09 15:29:07 | serhiy.storchaka | link | issue41751 messages |
2020-09-09 15:29:07 | serhiy.storchaka | create | |
|