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

Class MyBytesIO

Lib/test/test_io/test_textio.py:482–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480 l = []
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 1

test_destructorMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_destructorMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…