This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients
Date 2005-08-07.18:25:27
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=21627

I think this code is way too fragile to be applied to 2.4.
As for specific errors I could find:
- if the system is not windows, it invokes select
unconditionally; this should be conditioned with HAVE_SELECT
- the Windows version uses kbhit; this may or may not
operate on the same handle as hStdIn. In fact, it likely is
a different handle. See the source code of the crt: kbhit
uses _coninpfh, which is created from opening CONIN$. Try
using GetNumberOfConsoleInputEvents/PeekConsoleInput
instead, checking for a KEY_EVENT event.
- as stdin may be buffered, it may be the case that there is
already input available, even though the file descriptor is
not ready.
History
Date User Action Args
2007-08-23 15:40:16adminlinkissue1049855 messages
2007-08-23 15:40:16admincreate