Message186882
| Author |
alexandre.vassalotti |
| Recipients |
Leo.Na, alexandre.vassalotti, belopolsky, neologix, pitrou, serhiy.storchaka |
| Date |
2013年04月14日.05:03:39 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1365915819.59.0.234031679743.issue10701@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
The mutating __getstate__ is very likely the problem here. I've attached a small test case which shows the described behavior.
We could fix this by always making a copy of any mutable container we want to iterate over to save its items. Performance-wise this solution is not very attractive. We are better off documenting this behavior as a limitation of __getstate__. |
|