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

Method writable

Lib/lzma.py:185–188  ·  view source on GitHub ↗

Return whether the file was opened for writing.

(self)

Source from the content-addressed store, hash-verified

183 return self._mode == _MODE_READ
184
185 def writable(self):
186 """Return whether the file was opened for writing."""
187 self._check_not_closed()
188 return self._mode == _MODE_WRITE
189
190 def peek(self, size=-1):
191 """Return buffered data without advancing the file position.

Callers 1

test_writableMethod · 0.95

Calls 1

_check_not_closedMethod · 0.80

Tested by 1

test_writableMethod · 0.76