> > but a better way to do that is: > if item.endswith('.zip') > >> x = zipfile.Zipfile(item,'r') >> x.extractall() >> x.close() >> ok, I used that (above) typed below:
for item in zipContents: if item.endswith('.zip'): x = zipfile.Zipfile(item,'r') x.extractall() x.close() but now get a " x = zipfile.Zipfile(item,'r') AttributeError: 'module' object has no attribute 'Zipfile' " error grrrrr, this is going to send me to the funny farm! greg _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor