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

Method readable

Lib/lzma.py:180–183  ·  view source on GitHub ↗

Return whether the file was opened for reading.

(self)

Source from the content-addressed store, hash-verified

178 return self.readable() and self._buffer.seekable()
179
180 def readable(self):
181 """Return whether the file was opened for reading."""
182 self._check_not_closed()
183 return self._mode == _MODE_READ
184
185 def writable(self):
186 """Return whether the file was opened for writing."""

Callers 2

seekableMethod · 0.95
test_readableMethod · 0.95

Calls 1

_check_not_closedMethod · 0.80

Tested by 1

test_readableMethod · 0.76