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

Method readable

Lib/_pyio.py:1830–1833  ·  view source on GitHub ↗

True if file was opened in a read mode.

(self)

Source from the content-addressed store, hash-verified

1828 return self._seekable
1829
1830 def readable(self):
1831 """True if file was opened in a read mode."""
1832 self._checkClosed()
1833 return self._readable
1834
1835 def writable(self):
1836 """True if file was opened in a write mode."""

Callers 1

testAblesMethod · 0.95

Calls 1

_checkClosedMethod · 0.45

Tested by 1

testAblesMethod · 0.76