class documentation

class OpenOnDemandZipFile(zipfile.ZipFile): (source)

Constructor: OpenOnDemandZipFile(filename)

View In Hierarchy

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 _fileRefCnt Undocumented
@py3_data
def __init__(self, filename): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def read(self, name): (source)

Undocumented

def write(self, *args, **kwargs): (source)
Raises
NotImplementedErrorOpenOnDemandZipfile is read-only
def writestr(self, *args, **kwargs): (source)
Raises
NotImplementedErrorOpenOnDemandZipfile is read-only

Undocumented

_fileRefCnt: int = (source)

Undocumented