New submission from Trent Nelson:

Attached patch adds select.poll() support on Windows via WSAPoll.

It's hacky; I was curious to see whether or not it could be done, and whether 
or not tulip's pollster would work with it.

It compiles and works, but doesn't play very nicely with tulip.  Also, just 
about every lick of code that tests poll() does so in a UNIX-specific way, so 
it's hard to test.

As with select, WSAPoll() will barf if you feed it anything other than SOCKETs 
(i.e. it doesn't work against non-socket file descriptors).

files: wsapoll.patch
keywords: patch
messages: 175927
nosy: trent
priority: normal
severity: normal
status: open
title: Patch selectmodule.c to support WSAPoll on Windows
Added file:

Python tracker <>
Python-bugs-list mailing list

Reply via email to