Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
append
Method · 0.45
getvalue
Method · 0.45
close
Method · 0.45
Tested by
no test coverage detected