"larry.mart...@gmail.com" <larry.mart...@gmail.com> writes: > It seems that if you do a list(group) you have consumed the list. This > screwed me up for a while, and seems very counter-intuitive.
Yes, that is correct, you have to carefully watch where the stuff in the iterators is getting consumed, including when there are nested iterators. That's what I was mentioning earlier--it got me confused at first, but I use that style all the time now and it is pretty natural. -- http://mail.python.org/mailman/listinfo/python-list