Message376525
Thanks for the clarification.
Just for the record:
I have implemented __setstate__() such that it completely restores the state from just the inherited list state. That makes it independent of whether __init__() or __new__() is called:
def __getstate__(self):
state = self.__dict__.copy()
del state['_lc_list']
return state
def __setstate__(self, state):
self.__dict__.update(state)
self._lc_list = _lc_list(self)
This issue can be closed. |
|
Date |
User |
Action |
Args |
2020-09-07 19:20:50 | andymaier | set | recipients:
+ andymaier, pitrou, serhiy.storchaka |
2020-09-07 19:20:50 | andymaier | set | messageid: <1599506450.8.0.492845589861.issue41639@roundup.psfhosted.org> |
2020-09-07 19:20:50 | andymaier | link | issue41639 messages |
2020-09-07 19:20:50 | andymaier | create | |
|