MCPcopy 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_multi_closeMethod · 0.95
test_issue142594Method · 0.95

Calls 2

flushMethod · 0.95
closeMethod · 0.45

Tested by 4

test_multi_closeMethod · 0.76
test_issue142594Method · 0.76