Reading from sys.stdin reads the whole file in

Marko Rauhamaa marko at pacujo.net
Wed Aug 27 04:39:58 EDT 2014


Peter Otten <__peter__ at web.de>:

> In addition to what already has been said: you can switch off output
> buffering of stdout/stderr with
>
> python -u out.py
>
> or by setting the PYTHONUNBUFFERED environment variable.

Very often such externalities are not in the control of the application
developer.


Marko



More information about the Python-list mailing list