Re: [Python-Dev] Return value from socket.fileno()

2007-05-23 Thread Guido van Rossum
On 5/23/07, Greg Ewing <[EMAIL PROTECTED]> wrote: > Alan Kennedy wrote: > > I am writing to seek information about the socket.fileno() method, and > > opinions on how best to implement it on jython. > > I would hope that the new i/o system will make it > unnecessary to use fileno() in portable code

Re: [Python-Dev] Return value from socket.fileno()

2007-05-23 Thread Greg Ewing
Alan Kennedy wrote: > I am writing to seek information about the socket.fileno() method, and > opinions on how best to implement it on jython. I would hope that the new i/o system will make it unnecessary to use fileno() in portable code. It's really a unix-specific thing. > So the question I'm

[Python-Dev] Return value from socket.fileno()

2007-05-23 Thread Alan Kennedy
Dear all, I am writing to seek information about the socket.fileno() method, and opinions on how best to implement it on jython. On cpython, socket.fileno() returns a file descriptor, i.e. an integer index into an array of file objects. This integer is then passed to select.select and select.p