Message83098
| 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 |
<1236114282.35.0.00983721043654.issue4712@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|