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

Paul Rubin no.email at nospam.invalid
Thu Jul 19 21:56:32 CEST 2012


"Larry.Martell at gmail.com" <larry.martell at gmail.com> writes:
> You can't do a len on the iterator that is returned from groupby, and
> I've tried to do something with imap or      defaultdict, but I'm not
> getting anywhere. I guess I can just make 2 passes through the data,
> the first time getting counts. Or am I missing something about how
> groupby works?

I posted another reply to your other message, which reached me earlier.
If you're still stuck, post again, though I probably won't be able to
reply til tomorrow or the next day.



More information about the Python-list mailing list