select() on WinXP
Thomas Heller
theller at ctypes.org
Thu Nov 23 11:25:52 EST 2006
grebekel at gmail.com schrieb:
> I'm using it for sockets, it works on linux but not on Windows. The
> actual code is something like (server side):
>
> r, w, e = select.select(self.clients, [], self.clients, 5)
>
> where self.clients is a list of accepted sockets.
>
The docs for select.select say:
Empty sequences are allowed, but acceptance of three empty sequences is platform-dependent.
(It is known to work on Unix but not on Windows.)
Thomas
More information about the Python-list
mailing list