Python 2.3b1 (#40, Apr 25 2003, 19:06:24) [MSC v.1200 32 bit (Intel)] onwin32
Type "help", "copyright", "credits" or "license" for more information.
>>> import select
>>> select.select([],[],[])
Traceback (most recent call last):
File "<stdin>", line 1, in ?
select.error: (10093, 'Either the application has not called WSAStartup, or
WSAStartup failed')
>>>
Is this intentionally? I can't seem to find anything in the docs that says
that I have to import socket first. (because that gets rid of this error).
--Irmen
PS. Yeah I know that select on windows doesn't like empty lists...
Under Windows, select can't be used for anything except
sockets, so there's really no use for importing select w/o
importing socket. I suppose you could put a call in the select
module to start up winsock if it hasn't already been done, but
what's the point?
I'm guessing that the select call is probably actually part of
winsock and not really part of Win32...
--
Grant Edwards grante Yow! Are we THERE yet? My
at MIND is a SUBMARINE!!
visi.com
There's no point, indeed.
But I was just wondering if this is a conscious omission of the init call, or
that somebody forgot something ;-)
> I'm guessing that the select call is probably actually part of
> winsock and not really part of Win32...
You're probably right.
But couldn't it be implemented using WaitForMultipleObjects() ?
Never mind. Don't want to mess with that.
--Irmen