Message178367
This isn't a bug. It is an intended feature that chain.from_iterable evaluates lazily (and is documented as such). The pure python equivalent in the docs behaves the same as the C version does.
Also, it is a long standing feature of lists that you can loop over them while mutating them (I've seen more than a few pieces of code that take advantage of that feature). |
|
Date |
User |
Action |
Args |
2012-12-28 07:22:40 | rhettinger | set | recipients:
+ rhettinger, r.david.murray, gwrtheyrn, davidhalter, pyos |
2012-12-28 07:22:40 | rhettinger | set | messageid: <1356679360.8.0.788314792731.issue16791@psf.upfronthosting.co.za> |
2012-12-28 07:22:40 | rhettinger | link | issue16791 messages |
2012-12-28 07:22:40 | rhettinger | create | |
|