Author r.david.murray
Recipients davidhalter, gwrtheyrn, pyos, r.david.murray
Date 2012-12-27.13:48:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1356616126.85.0.298647168065.issue16791@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, the behavior here is "undefined" at the language level.  And as pyos says, technically it is documented: if you mutate the object over which you are iterating inside the iteration context (a for loop is just one example of same), the behavior is explicitly undefined.  I agree that it is not *obvious* that that applies to chain.from_iterable in this context, but I'm not sure how we'd improve the docs to cover it.
History
Date User Action Args
2012-12-27 13:48:46r.david.murraysetrecipients: + r.david.murray, gwrtheyrn, davidhalter, pyos
2012-12-27 13:48:46r.david.murraysetmessageid: <1356616126.85.0.298647168065.issue16791@psf.upfronthosting.co.za>
2012-12-27 13:48:46r.david.murraylinkissue16791 messages
2012-12-27 13:48:46r.david.murraycreate