MCPcopy Index your code
hub / github.com/RustPython/RustPython / detach

Method detach

Lib/_pyio.py:2480–2486  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2478 return self.buffer.truncate(pos)
2479
2480 def detach(self):
2481 if self.buffer is None:
2482 raise ValueError("buffer is already detached")
2483 self.flush()
2484 buffer = self._buffer
2485 self._buffer = None
2486 return buffer
2487
2488 def seek(self, cookie, whence=0):
2489 def _reset_encoder(position):

Callers 9

parseMethod · 0.95
test_detachMethod · 0.95
test_listMethod · 0.95
test_list_verboseMethod · 0.95
test_list_membersMethod · 0.95
test_listMethod · 0.95
toprettyxmlMethod · 0.95

Calls 1

flushMethod · 0.95

Tested by 7

test_detachMethod · 0.76
test_listMethod · 0.76
test_list_verboseMethod · 0.76
test_list_membersMethod · 0.76
test_listMethod · 0.76