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

Method detach

Lib/_pyio.py:749–756  ·  view source on GitHub ↗

Separate the underlying raw stream from the buffer and return it. After the raw stream has been detached, the buffer is in an unusable state.

(self)

Source from the content-addressed store, hash-verified

747 self._unsupported("write")
748
749 def detach(self):
750 """
751 Separate the underlying raw stream from the buffer and return it.
752
753 After the raw stream has been detached, the buffer is in an unusable
754 state.
755 """
756 self._unsupported("detach")
757
758io.BufferedIOBase.register(BufferedIOBase)
759

Callers

nothing calls this directly

Calls 1

_unsupportedMethod · 0.80

Tested by

no test coverage detected