Finding duplicate file names and modifying them based on elements of the path

Paul Rubin no.email at nospam.invalid
Fri Jul 20 03:51:21 EDT 2012


"Larry.Martell at gmail.com" <larry.martell at 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.



More information about the Python-list mailing list