Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ flush
Method
flush
Lib/_pyio.py:804–807 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
802
### Flush and close ###
803
804
def
flush(self):
805
if
self.closed:
806
raise
ValueError(
"flush on closed file"
)
807
self.raw.flush()
808
809
def
close(self):
810
if
self.raw is not None and not self.closed:
Callers
3
truncate
Method · 0.95
close
Method · 0.95
detach
Method · 0.95
Calls
1
flush
Method · 0.45
Tested by
no test coverage detected