select() on WinXP

Fredrik Lundh fredrik at pythonware.com
Thu Nov 23 10:47:00 EST 2006


grebekel at gmail.com 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
> <module>
>    select.select([],[],[])
> error: (10022, 'An invalid argument was supplied')
> [/output]
>
> Is there anything I should be aware of to get select() working under
> Windows?

like, say, only calling select if you actually have something you want to select on?

(if you want to sleep, use time.sleep())

</F> 






More information about the Python-list mailing list