class documentation
class OpenOnDemandZipFile(zipfile.ZipFile): (source)
Constructor: OpenOnDemandZipFile(filename)
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.
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | read |
Undocumented |
Method | write |
No summary |
Method | writestr |
No summary |
Instance Variable | fp |
Undocumented |
Instance Variable | _file |
Undocumented |