[Python-ideas] BufferedIO and detach

random832 at fastmail.us random832 at fastmail.us
Wed Mar 6 16:19:31 CET 2013

On Tue, Mar 5, 2013, at 4:22, Antoine Pitrou wrote:
> Apparently you need ReadConsole to read bytes, not ReadConsoleInput:
> http://msdn.microsoft.com/en-us/library/ms684958%28v=vs.85%29.aspx

ReadConsole reads characters. Using ReadConsoleA to get bytes is almost
certainly not what you want 90% of the time. Unfortunately, Python does
it (or, more likely, uses ReadFile which does the same thing) now, at
least in version 2.7. I may post to this list later this week suggesting
improvements to the console streams on win32.

More information about the Python-ideas mailing list