Re: select() on WinXP

2006-11-23 Thread [EMAIL PROTECTED]
I patched the code to: if self.clients: r, w, e = select.select(self.clients, [], self.clients, 5) It works now, thank you Thomas :) -- http://mail.python.org/mailman/listinfo/python-list

Re: select() on WinXP

2006-11-23 Thread Thomas Heller
[EMAIL PROTECTED] 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:

Re: select() on WinXP

2006-11-23 Thread [EMAIL PROTECTED]
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. -- http://mail.python.org/mailman/listinfo/python-list

Re: select() on WinXP

2006-11-23 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I'm running Python 2.5 on Windows XP. When I try to do this: > > [code] > import select > select.select([], [], []) > [/code] > > I get this: > > [output] > Traceback (most recent call last): > File "C:/Documents and Settings/Grebekel/Desktop/s.py", line 2, in > >s