"Harris, Sarah L" <[email protected]> wrote
fname=filter(isfile, glob.glob('*.zip'))
for fname in fname:
This will confuse things. fname starts off as a list of files
and then becomes a single filename inside the loop.
It's never a good idea to duplicate variable names
like that. It also means that after the loop completes
fname referes only to the last filename, the list has gone.
zipnames=filter(isfile, glob.glob('*.zip'))
for zipname in zipnames:
This is much better.
HTH,
Alan G.
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor