Message178367
| Author |
rhettinger |
| Recipients |
davidhalter, gwrtheyrn, pyos, r.david.murray, rhettinger |
| Date |
2012年12月28日.07:22:40 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1356679360.8.0.788314792731.issue16791@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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). |
|