Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_http_body_fileobj
Method · 0.95
test_07
Function · 0.95
Calls
3
super
Class · 0.85
clear
Method · 0.45
close
Method · 0.45
Tested by
2
test_http_body_fileobj
Method · 0.76
test_07
Function · 0.76