Home | Trees | Indices | Help |
|
---|
|
zipfile.ZipFile --+ | OpenOnDemandZipFile
A subclass of zipfile.ZipFile
that closes its file
pointer whenever it is not using it; and re-opens it when it needs to
read data from the zipfile. This is useful for reducing the number of
open file handles when many zip files are being accessed at once.
OpenOnDemandZipFile
must be constructed from a filename, not
a file-like object (to allow re-opening).
OpenOnDemandZipFile
is read-only (i.e., write
and writestr
are disabled.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
Open the ZIP file with mode read "r", write "w" or append "a".
|
Return file bytes (as a string) for name.
|
Put the bytes from filename into the archive under the name arcname.
|
Write a file into the archive. The contents is the string 'bytes'. 'zinfo_or_arcname' is either a ZipInfo instance or the name of the file in the archive.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Aug 27 15:08:53 2008 | http://epydoc.sourceforge.net |