Reading from stdin

Almar Klein almar.klein at gmail.com
Wed Oct 8 07:11:49 EDT 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:
http://code.activestate.com/recipes/440554/

cheers,
  Almar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081008/b3889101/attachment-0001.html>


More information about the Python-list mailing list