MCPcopy Create free account
hub / github.com/PyTables/PyTables / _iswritable

Method _iswritable

tables/file.py:2333–2335  ·  view source on GitHub ↗

Return True if the file is writable.

(self)

Source from the content-addressed store, hash-verified

2331 raise ClosedFileError("the file object is closed")
2332
2333 def _iswritable(self) -> bool:
2334 """Return True if the file is writable."""
2335 return self.mode in ("w", "a", "r+")
2336
2337 def _check_writable(self) -> None:
2338 """Check whether the file is writable.

Callers 5

_check_writableMethod · 0.95
closeMethod · 0.95
flushMethod · 0.80
compute_overlapsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected