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

Method writable

Lib/compression/zstd/_zstdfile.py:289–292  ·  view source on GitHub ↗

Return whether the file was opened for writing.

(self)

Source from the content-addressed store, hash-verified

287 return self._mode == _MODE_READ
288
289 def writable(self):
290 """Return whether the file was opened for writing."""
291 self._check_not_closed()
292 return self._mode == _MODE_WRITE
293
294
295def open(file, /, mode='rb', *, level=None, options=None, zstd_dict=None,

Callers 2

test_writableMethod · 0.95
_check_can_writeMethod · 0.45

Calls 1

_check_not_closedMethod · 0.80

Tested by 1

test_writableMethod · 0.76