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

Method readable

Lib/_pyio.py:434–439  ·  view source on GitHub ↗

Return a bool indicating whether object was opened for reading. If False, read() will raise OSError.

(self)

Source from the content-addressed store, hash-verified

432 if msg is None else msg)
433
434 def readable(self):
435 """Return a bool indicating whether object was opened for reading.
436
437 If False, read() will raise OSError.
438 """
439 return False
440
441 def _checkReadable(self, msg=None):
442 """Internal: raise UnsupportedOperation if file is not readable

Callers 6

_checkReadableMethod · 0.95
__init__Method · 0.45
readableMethod · 0.45
__init__Method · 0.45
readableMethod · 0.45
readableMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected