[Python-Dev] test_urllibnet failing on Windows

Brett C. drifty@alum.berkeley.edu
Fri, 16 May 2003 15:13:34 -0700


Tim Peters wrote:
>>...
>>The docs for fdopen say nothing about this restriction.  Anyone mind if
>>I add to the docs a mention of this limitation?
> 
> 
> AFAICT, you only asked me, so I'll answer <wink>:

Joys of missing the "reply all" button.  I am cc'ing python-dev on this now.

>  I think this is better
> spelled out in the docs for socket.fileno().  What it says now:
> 
>     Return the socket's file descriptor (a small integer).  This is
>     useful with select.select().
> 
> is correct for Unix, but on Windows it does not return a file descriptor (it
> returns a Windows socket handle, which is also "a small integer", and is
> also useful select.select() -- although on both Windows and Unix,
> select.select() extracts the fileno() from socket objects automatically, so
> there's no *need* to invoke fileno() explicitly in order to call select()).
> 

OK.  I will fix those docs.

-Brett