Strangeness: Cannot write to a file from a process created by Windows Task Scheduler ...

MRAB python at mrabarnett.plus.com
Mon Oct 26 14:13:31 EDT 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.
> 
[snip]
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 mailing list