MCPcopy Index your code
hub / github.com/python/cpython / _Tellable

Class _Tellable

Lib/zipfile/__init__.py:927–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

925
926# Provide the tell method for unseekable stream
927class _Tellable:
928 def __init__(self, fp):
929 self.fp = fp
930 self.offset = 0
931
932 def write(self, data):
933 n = self.fp.write(data)
934 self.offset += n
935 return n
936
937 def tell(self):
938 return self.offset
939
940 def flush(self):
941 self.fp.flush()
942
943 def close(self):
944 self.fp.close()
945
946
947class ZipExtFile(io.BufferedIOBase):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…