Reading from stdin

Almar Klein almar.klein at
Wed Oct 8 13:11:49 CEST 2008

> I guess the phrasing "hidden read-ahead buffer" implies that buffering
> cannot be turned off (or at least it is not intended to even if it's
> somehow possible).

I think it can be done, but you would have to use a different approach on
linux than on windows. Linux requires fcntl (I dont know what this is) and
windows would require the win32api stuff.

Look here for an example where this is done for a subprocess:

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list