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