Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #43936
| Date | 2013-04-19 15:45 -0500 |
|---|---|
| From | Tim Chase <python.list@tim.thechases.com> |
| Subject | Re: unzipping a zipx file |
| References | <kks0lu+q4pj@eGroups.com> <5171A946.9090609@davea.name> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.841.1366404264.3114.python-list@python.org> (permalink) |
On 2013-04-19 16:29, Dave Angel wrote: > > zFile = zipfile.ZipFile(fullPathName,'r') > > The second parameter to ZipFile() probably should be 'rb' not 'r' Just for the record, the zipfile.ZipFile.__init__ maps "r" to open the file with "rb", so that's not the issue. Your suggestion about opening the file to write in binary mode is a good one, but I'd just suggest using ZipFile.extract(...) which is built in and takes care of writing the file for you. :-) -tkc
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: unzipping a zipx file Tim Chase <python.list@tim.thechases.com> - 2013-04-19 15:45 -0500
csiph-web