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

Method seekable

Lib/bz2.py:139–141  ·  view source on GitHub ↗

Return whether the file supports seeking.

(self)

Source from the content-addressed store, hash-verified

137 return self._fp.fileno()
138
139 def seekable(self):
140 """Return whether the file supports seeking."""
141 return self.readable() and self._buffer.seekable()
142
143 def readable(self):
144 """Return whether the file was opened for reading."""

Callers 1

testSeekableMethod · 0.95

Calls 1

readableMethod · 0.95

Tested by 1

testSeekableMethod · 0.76