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

Method flush

Lib/_pyio.py:377–383  ·  view source on GitHub ↗

Flush write buffers, if applicable. This is not implemented for read-only and non-blocking streams.

(self)

Source from the content-addressed store, hash-verified

375 ### Flush and close ###
376
377 def flush(self):
378 """Flush write buffers, if applicable.
379
380 This is not implemented for read-only and non-blocking streams.
381 """
382 self._checkClosed()
383 # XXX Should this return the number of bytes written???
384
385 __closed = False
386

Callers 11

closeMethod · 0.95
flushMethod · 0.45
flushMethod · 0.45
seekMethod · 0.45
readMethod · 0.45
readintoMethod · 0.45
peekMethod · 0.45
read1Method · 0.45
readinto1Method · 0.45
flushMethod · 0.45
getvalueMethod · 0.45

Calls 1

_checkClosedMethod · 0.95

Tested by

no test coverage detected