On 2021-01-15, Eryk Sun wrote:
> On 1/15/21, Grant Edwards wrote:
>> In Python 3.7+, how does one flush the stdout FILE stream? I mean the
>> FILE *declared as 'stdio' in . I'm _not_ asking how to flush the
>> Python file object sys.stdio.
>
> You can flush all output streams via C fflush(NULL).
On 1/15/21, Grant Edwards wrote:
> In Python 3.7+, how does one flush the stdout FILE stream? I mean the
> FILE *declared as 'stdio' in . I'm _not_ asking how to flush the
> Python file object sys.stdio.
You can flush all output streams via C fflush(NULL). If it has to be
just stdout, the code wi
In Python 3.7+, how does one flush the stdout FILE stream? I mean the
FILE *declared as 'stdio' in . I'm _not_ asking how to flush the
Python file object sys.stdio.
The problem is that some Python modules write to FILE *stdio, but
don't flush the stream so that the data gets written to the standar