Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ close
Method
close
Lib/_pyio.py:2225–2230 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
2223
self._telling = self._seekable
2224
2225
def
close(self):
2226
if
self.buffer is not None and not self.closed:
2227
try
:
2228
self.flush()
2229
finally:
2230
self.buffer.close()
2231
2232
@property
2233
def
closed(self):
Callers
4
test_close_error_on_close
Method · 0.95
test_nonnormalized_close_error_on_close
Method · 0.95
test_multi_close
Method · 0.95
test_issue142594
Method · 0.95
Calls
2
flush
Method · 0.95
close
Method · 0.45
Tested by
4
test_close_error_on_close
Method · 0.76
test_nonnormalized_close_error_on_close
Method · 0.76
test_multi_close
Method · 0.76
test_issue142594
Method · 0.76