Using select([sys.stdin]) on windows xp

Josiah Carlson jcarlson at uci.edu
Wed Oct 6 17:23:44 CEST 2004


<snip example code>

> 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.
> 
> So I was wondering how I can change the code above to run on windows
> xp.  Any help would greatly appreciated.

Check out the windows ctypes or pywin32 libraries.  You can get at
nearly all the underlying system calls with either of those two
libraries, though discovering which call you want may be a bit of a
chore.

 - Josiah




More information about the Python-list mailing list