!! Non blocking IO !!
Constantinos A. Kotsokalis
C.Kotsokalis at ece.ntua.gr
Thu Sep 30 08:37:42 EDT 1999
On Wed, 29 Sep 1999 14:47:07 +0200, Pierre Saloni wrote:
> I would like to know how to use a non bloking IO, like print.
> In perl I would have used $|=0 to set the non blockng mode.
> What should I use in python ?
If you mean flushing after every output operation (i.e. unbuffered
I/O), then simply call python with the -u argument:
python -u myprogram.py
This should do the trick.
--
Constantinos A. Kotsokalis - C.Kotsokalis at ece.ntua.gr - NTUA - ECE Dept.
"The three Rs of Microsoft support: Retry, Reboot, Reinstall."
More information about the Python-list
mailing list