[Python-ideas] BufferedIO and detach

Robert Collins robertc at robertcollins.net
Tue Mar 5 08:39:55 CET 2013

On 5 March 2013 20:31, Antoine Pitrou <solipsis at pitrou.net> wrote:
> On Tue, 5 Mar 2013 10:50:01 +1300

> I didn't know about that. I wonder, what happens if the standard input
> is redirected?
> Also, is it able to read actual raw bytes? INPUT_RECORD looks rather
> specialized:
> http://msdn.microsoft.com/en-us/library/ms683499%28v=vs.85%29.aspx

I don't know; cygwin's source may, or we could get someone with a
Windows machine to do some testing.

>>  and disk files can do nonblocking with
>> overlapped IO (though that is a wholly different beast and clearly
>> offtopic :)).
> It's not non-blocking then, it's asynchronous (it's blocking but in
> another thread ;-)).

Well... its not in another userspace thread - its near-identical in
implementation to Linux AIO : the kernel takes care of it. The deliver
mechanism is however very different (you sleep and the kernel calls
you back).


More information about the Python-ideas mailing list