[Tutor] memory error
Moos Heintzen
iwasroot at gmail.com
Tue Mar 10 05:02:22 CET 2009
On Fri, Mar 6, 2009 at 5:03 PM, Harris, Sarah L
<sarah.l.harris at jpl.nasa.gov> wrote:
> fname=filter(isfile, glob.glob('*.zip'))
> for fname in fname:
> zipnames=filter(isfile, glob.glob('*.zip'))
> for zipname in zipnames:
> ...
It looks you're using an unnecessary extra loop.
Aren't the contents of fname similar to zipnames?
I tried it with one loop (for zipname in zipnames:) and it worked.
P.S. You're at jpl? That's awesome! I was looking at internships they
have few days ago.
More information about the Tutor
mailing list