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

Method close

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

Source from the content-addressed store, hash-verified

904 return memoryview(self._buffer)
905
906 def close(self):
907 if self._buffer is not None:
908 self._buffer.clear()
909 super().close()
910
911 def read(self, size=-1):
912 if self.closed:

Callers 2

test_07Function · 0.95

Calls 3

superClass · 0.85
clearMethod · 0.45
closeMethod · 0.45

Tested by 2

test_07Function · 0.76