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

Method close

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

Source from the content-addressed store, hash-verified

916 return memoryview(self._buffer)
917
918 def close(self):
919 if self._buffer is not None:
920 self._buffer.clear()
921 super().close()
922
923 def read(self, size=-1):
924 if self.closed:

Callers 1

Calls 3

superClass · 0.85
clearMethod · 0.45
closeMethod · 0.45

Tested by 1