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

Method readable

Lib/compression/zstd/_zstdfile.py:284–287  ·  view source on GitHub ↗

Return whether the file was opened for reading.

(self)

Source from the content-addressed store, hash-verified

282 return self.readable() and self._buffer.seekable()
283
284 def readable(self):
285 """Return whether the file was opened for reading."""
286 self._check_not_closed()
287 return self._mode == _MODE_READ
288
289 def writable(self):
290 """Return whether the file was opened for writing."""

Callers 2

test_readableMethod · 0.95
seekableMethod · 0.95

Calls 1

_check_not_closedMethod · 0.80

Tested by 1

test_readableMethod · 0.76