MCPcopy Index your code
hub / github.com/RustPython/RustPython / readable

Method readable

Lib/_pyio.py:1809–1812  ·  view source on GitHub ↗

True if file was opened in a read mode.

(self)

Source from the content-addressed store, hash-verified

1807 return self._seekable
1808
1809 def readable(self):
1810 """True if file was opened in a read mode."""
1811 self._checkClosed()
1812 return self._readable
1813
1814 def writable(self):
1815 """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