"James C. Ahlstrom" wrote: > > "M.-A. Lemburg" wrote: > > > Now I get this error after working in interactive Python > > mode with zipfile: > > > > Exception exceptions.AttributeError: > > "ZipFile instance has no attribute 'fp'" in <method ZipFile.__del__ of ZipFile instance at 0x824524c> ignored > > Reading the code, I don't see how this could have happened > unless __init__ has already raised an exception. Probably has something to do with GC and cleaning up instances -- don't know. The error only shows up sometimes... Instead of seeing the __del__ exception I now get the previous error again: zlib.error: Error -3 while decompressing: incomplete dynamic bit lengths tree Nevermind... my setup must be broken in more way than I have time to figure out now :-( > > I would like a method .copy(self, name, output) which > > reads the file name from the ZIP archive and writes it directly to > > the file-like object output. This should copy the file in chunks > > of say 64kB in order to reduce memory load. > > This is only a few lines of Python, and I generally omit > any methods which are not absoultely necessary. Does > anyone else think this should be added? Thanks, -- Marc-Andre Lemburg ______________________________________________________________________ Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4