Message178298
| Author |
pyos |
| Recipients |
davidhalter, gwrtheyrn, pyos |
| Date |
2012年12月27日.13:34:10 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1356615250.34.0.27516875498.issue16791@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I don't think this is a bug. `b += iter(b)` and `for c in b: b.append(c)` work the same way. Also, the tutorial makes it clear that you should duplicate the list if you modify it inside a loop; in this case, this can be done either by iterating over `b[:]` instead of just `b` or using a list comprehension instead of a generator. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年12月27日 13:34:10 | pyos | set | recipients:
+ pyos, gwrtheyrn, davidhalter |
| 2012年12月27日 13:34:10 | pyos | set | messageid: <1356615250.34.0.27516875498.issue16791@psf.upfronthosting.co.za> |
| 2012年12月27日 13:34:10 | pyos | link | issue16791 messages |
| 2012年12月27日 13:34:10 | pyos | create |
|