Strangeness: Cannot write to a file from a process created by Windows Task Scheduler ...
python at mrabarnett.plus.com
Mon Oct 26 19:13:31 CET 2009
Sandy Walsh wrote:
> Yes it seems to be a flush problem. Strange how it doesn't require the
> explicit flush() when the console window appears, but does otherwise.
> Either way, it gives me a good direction to chase after.
It buffers for efficiency reasons, but if it can detect that it's
connected to a console then it won't bother buffering because there's
nothing to gain.
More information about the Python-list