Using select([sys.stdin]) on windows xp
daniel.dittmar at sap.corp
Wed Oct 6 17:35:52 CEST 2004
John Taylor wrote:
> According the the Python docs:
> On Windows, the underlying select() function is provided by the
> WinSock library, and does not handle file desciptors that don't
> originate from WinSock.
The Win32 functions are
- WaitForSingleObject (to wait with a short timeout)
- GetStdHandle (to get at the Win32 handle for sys.stdin)
Try Mark Hammonds Win32 extension if these functions are exported to Python.
Another possibility would be to use threads.
More information about the Python-list