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).
title: Patch selectmodule.c to support WSAPoll on Windows
Added file: http://bugs.python.org/file28038/wsapoll.patch
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list