A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-list/1999-September/013463.html below:

!! Non blocking IO !!

!! Non blocking IO !! !! 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4