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

Method writable

Lib/_pyio.py:448–453  ·  view source on GitHub ↗

Return a bool indicating whether object was opened for writing. If False, write() and truncate() will raise OSError.

(self)

Source from the content-addressed store, hash-verified

446 if msg is None else msg)
447
448 def writable(self):
449 """Return a bool indicating whether object was opened for writing.
450
451 If False, write() and truncate() will raise OSError.
452 """
453 return False
454
455 def _checkWritable(self, msg=None):
456 """Internal: raise UnsupportedOperation if file is not writable

Callers 6

_checkWritableMethod · 0.95
__init__Method · 0.45
writableMethod · 0.45
__init__Method · 0.45
writableMethod · 0.45
writableMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected