This is done in cpython, and an error is returned if the flush does not succeed.
This is done in cpython, and an error is returned if the flush does not succeed.