David-Sarah Hopwood <[email protected]> added the comment:

Note: Michael Kaplan's code checks whether GetConsoleMode failed due to 
ERROR_INVALID_HANDLE. My code intentionally doesn't do that, because it is 
correct and conservative to fall back to the non-console behaviour when there 
is *any* error from GetConsoleMode. (It could also fail due to not having the 
GENERIC_READ right on the handle, for example.)

----------

_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue1602>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to