Message83098
The behavior is a PITA. It means that dict subclasses the redefine
__setitem__ have unpleasant pickling challenges. The __setitem__
insertions are called before the subclass can initialize.
The workaround involves a funky dance using __reduce__. See
collections.OrderedDict::__reduce__() for an example. |
|
Date |
User |
Action |
Args |
2009-03-03 21:04:42 | rhettinger | set | recipients:
+ rhettinger, georg.brandl, aronacher |
2009-03-03 21:04:42 | rhettinger | set | messageid: <1236114282.35.0.00983721043654.issue4712@psf.upfronthosting.co.za> |
2009-03-03 21:04:39 | rhettinger | link | issue4712 messages |
2009-03-03 21:04:39 | rhettinger | create | |
|