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

Method writable

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

477 if msg is None else msg)
478
479 def writable(self):
480 """Return a bool indicating whether object was opened for writing.
481
482 If False, write() and truncate() will raise OSError.
483 """
484 return False
485
486 def _checkWritable(self, msg=None):
487 """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