MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / flush

Method flush

tools/python-3.11.9-amd64/Lib/_pyio.py:402–408  ·  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

400 ### Flush and close ###
401
402 def flush(self):
403 """Flush write buffers, if applicable.
404
405 This is not implemented for read-only and non-blocking streams.
406 """
407 self._checkClosed()
408 # XXX Should this return the number of bytes written???
409
410 __closed = False
411

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