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

Method getbuffer

Lib/_pyio.py:911–916  ·  view source on GitHub ↗

Return a readable and writable view of the buffer.

(self)

Source from the content-addressed store, hash-verified

909 return bytes(self._buffer)
910
911 def getbuffer(self):
912 """Return a readable and writable view of the buffer.
913 """
914 if self.closed:
915 raise ValueError("getbuffer on closed file")
916 return memoryview(self._buffer)
917
918 def close(self):
919 if self._buffer is not None:

Callers 6

dumpsMethod · 0.95
_launchMethod · 0.95
_launchMethod · 0.95
get_appxmanifestFunction · 0.95
file_digestFunction · 0.45
commit_frameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected