[Python-Dev] Assign to errno allowed?
Guido van Rossum
guido@python.org
Tue, 24 Sep 2002 10:56:26 -0400
> > > I'm trying to fix selectmodule.c on Windows (it raises
> > > bogus exceptions, because select() on Windows does not
> > > set errno).
> >
> > Are you *sure* about that?
>
> Yes.
>
> MSDN:
>
> The select function returns the total number of socket handles that
> are ready and contained in the fd_set structures, zero if the time
> limit expired, or SOCKET_ERROR if an error occurred. If the return
> value is SOCKET_ERROR, WSAGetLastError can be used to retrieve a
> specific error code.
Argh! So select() has never returned proper return values on
Windows. :-(
Thanks for fixing this. Are you gonna fix it in 2.2.2 as well as 2.3?
--Guido van Rossum (home page: http://www.python.org/~guido/)