POLL in different OSes

Gerhard Häring gh_pythonlist at gmx.de
Tue Oct 23 04:18:40 EDT 2001


On Mon, Oct 22, 2001 at 10:51:02PM -0300, Lucio Torre wrote:
>  From the documentation:
> 
> "The poll() system call, supported on most Unix systems"
> 
> and my questions:
> 
> a) is poll supported on Windows?
> 
> my guess is no, but i hoping for a yes.

It isn't. Unless, you're using Cygwin. Also, select only works with
sockets on Windows.

Wouldn't it be possible to emulate poll() with select()? I'd be glad to
see a patch appear at Sourceforge if that's possible :-)

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))




More information about the Python-list mailing list