Message288262
| Author |
rhettinger |
| Recipients |
Leo.Na, alexandre.vassalotti, belopolsky, docs@python, neologix, pitrou, rhettinger, serhiy.storchaka |
| Date |
2017年02月21日.04:07:46 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1487650066.92.0.378928809158.issue10701@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I agree with Antoine that, "As the name suggests, __getstate__ should probably not mutate anything."
Unless a problematic non-mutating example can be found, I suggest this be closed. For the most part, our rule has been that pure python code doesn't have to (and possibly cannot) defend itself against mid-stream mutation, while C code only has to defend itself to the point of avoiding a segfault.
IMO, "RuntimeError: dictionary changed size during iteration" is an informative error message in this case. |
|