pyos added the comment:

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.

----------
nosy: +pyos

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16791>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to