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 <>
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.
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: <>
2012-12-27 13:48:46r.david.murraylinkissue16791 messages
2012-12-27 13:48:46r.david.murraycreate