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

Method tell

Lib/compression/zstd/_zstdfile.py:253–259  ·  view source on GitHub ↗

Return the current file position.

(self)

Source from the content-addressed store, hash-verified

251 raise StopIteration
252
253 def tell(self):
254 """Return the current file position."""
255 self._check_not_closed()
256 if self._mode == _MODE_READ:
257 return self._buffer.tell()
258 elif self._mode == _MODE_WRITE:
259 return self._pos
260
261 def fileno(self):
262 """Return the file descriptor for the underlying file."""

Callers 1

test_zstdfile_flushMethod · 0.95

Calls 1

_check_not_closedMethod · 0.80

Tested by 1

test_zstdfile_flushMethod · 0.76