MCPcopy Index your code
hub / github.com/python/cpython / close

Method close

Lib/test/test_io/test_textio.py:483–485  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

481 base = self.BytesIO
482 class MyBytesIO(base):
483 def close(self):
484 l.append(self.getvalue())
485 base.close(self)
486 b = MyBytesIO()
487 t = self.TextIOWrapper(b, encoding="ascii")
488 t.write("abc")

Callers

nothing calls this directly

Calls 3

appendMethod · 0.45
getvalueMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected