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

Paul Rudin paul.nospam at rudin.co.uk
Fri Jul 20 10:37:42 CEST 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.

You've consumed the *group* which is an iterator, in order to construct
a list from its elements. Sorry if this is excessively nit-picking, but
it generally helps to keep these things very clear in your own mind.




More information about the Python-list mailing list