non-blocking sys.stdin.read() on win32?

Doobee R. Tzeck drt-usenet-0201 at un.bewaff.net
Tue Jan 22 20:30:31 EST 2002


Laurent Szyster <laurent.szyster at q-survey.be> writes:

> There's no way to do non-blocking I/O on STDIN on a Win32.
> I don't know why and even never bothered to test it, but I
> suppose we can trust Sam Rushing: he did try.
> 
> From Medusa/monitor_client_win32.py:
> 
>   # monitor client, win32 version
> 
>   # since we can't do select() on stdin/stdout, we simply
>   # use threads and blocking sockets.  <sigh>

>From what I heard (I don't do Windows myself):

* select() just works with sockets on win32

* there is a family of syscalls having about the same
  functionality as select on Unix. Something like "WaitForEvent()"
  or so.

drt

-- 
teenage mutant ninja hero coders from da c0re - http://c0re.jp/
me                                  - http://koeln.ccc.de/~drt/



More information about the Python-list mailing list