getpeername() on stdin?

Nobody nobody at
Sun Nov 3 04:27:09 CET 2013

On Fri, 01 Nov 2013 14:55:38 -0400, random832 wrote:

> If it's possible to get this information with only the fd, then why does
> socket.fromfd require them?

The only person who can answer that is whoever came up with
socket.fromfd() in the first place.

I initially suspected that it might have been a Windows limitation, but
socket.fromfd() is only available on Unix.

More information about the Python-list mailing list