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

Method detach

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

Source from the content-addressed store, hash-verified

2502 return self.buffer.truncate(pos)
2503
2504 def detach(self):
2505 if self.buffer is None:
2506 raise ValueError("buffer is already detached")
2507 self.flush()
2508 buffer = self._buffer
2509 self._buffer = None
2510 return buffer
2511
2512 def seek(self, cookie, whence=0):
2513 def _reset_encoder(position):

Callers 9

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

Calls 1

flushMethod · 0.95

Tested by 7

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