Message178299
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:46 | r.david.murray | set | recipients:
+ r.david.murray, gwrtheyrn, davidhalter, pyos |
2012-12-27 13:48:46 | r.david.murray | set | messageid: <1356616126.85.0.298647168065.issue16791@psf.upfronthosting.co.za> |
2012-12-27 13:48:46 | r.david.murray | link | issue16791 messages |
2012-12-27 13:48:46 | r.david.murray | create | |
|