read Zipfile

Tim Chase python.list at
Tue Nov 3 02:02:52 CET 2009

>> I would like to open the csv file with folowwing command,
>> But it turned out error,
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in ?
>> AttributeError: ZipFile instance has no attribute 'open'
>[, mode[, pwd]])
> [...]
>     New in version 2.6.
> Would your Python version happen to be pre-2.6?

FWIW, you can use the 2.6 as far back as 2.4 by just 
copying it into your project directory.  I had a similar issue in 
2.4 (wanted the iterator provided by 2.6's open() call) and 
Gabriel suggested trying to just copy in the 2.6 version into my 
project directory.  Worked for me(tm).


More information about the Python-list mailing list