MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / readable

Method readable

tools/python-3.11.9-amd64/Lib/_pyio.py:465–470  ·  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

463 if msg is None else msg)
464
465 def readable(self):
466 """Return a bool indicating whether object was opened for reading.
467
468 If False, read() will raise OSError.
469 """
470 return False
471
472 def _checkReadable(self, msg=None):
473 """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