Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ close
Method
close
Lib/tempfile.py:781–782 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
779
self.close()
780
781
def
close(self):
782
self._file.close()
783
784
@property
785
def
closed(self):
Callers
4
__del__
Method · 0.95
test_del_on_close
Method · 0.95
test_multiple_close_before_rollover
Method · 0.95
test_multiple_close_after_rollover
Method · 0.95
Calls
1
close
Method · 0.45
Tested by
3
test_del_on_close
Method · 0.76
test_multiple_close_before_rollover
Method · 0.76
test_multiple_close_after_rollover
Method · 0.76