gzFile

Standard library class internal.file.gzFile View source
class gzFile
@tuple
class gzFile[T]
Fields 1
T type
Constructors 2
__new__
__new__(fp: cobj, mode: str)
Defined in internal.file
__new__
__new__(path: str, mode: str, compresslevel: int = 9, encoding: str = "utf-8", errors: str = "strict", newline: Optional[str] = None)
Defined in internal.file
Methods 8
close
close(self)
Defined in internal.file
readlines
readlines(self)
Defined in internal.file
readline
readline(self)
Defined in internal.file
write
write(self, s: T)
Defined in internal.file
read
read(self, sz: int = -1)
Defined in internal.file
tell
tell(self)
Defined in internal.file
seek
seek(self, offset: int, whence: int)
Defined in internal.file
flush
flush(self)
Defined in internal.file
Special methods 4
__iter__
__iter__(self)
Defined in internal.file
__enter__
__enter__(self)
Defined in internal.file
__exit__
__exit__(self)
Defined in internal.file
__file_write_gen__
__file_write_gen__(self, g: Generator[T], T: type)
Defined in internal.file