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 rhettinger
Recipients aronacher, georg.brandl, rhettinger
Date 2009-03-03.21:04:39
SpamBayes Score 6.571542e-06
Marked as misclassified No
Message-id <>
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:42rhettingersetrecipients: + rhettinger, georg.brandl, aronacher
2009-03-03 21:04:42rhettingersetmessageid: <>
2009-03-03 21:04:39rhettingerlinkissue4712 messages
2009-03-03 21:04:39rhettingercreate