(fd, family, type, proto=0)
return socket(family, type, proto, nfd)
fromfd(fd, family, type[, proto]) -> socket object

    Create a socket object from a duplicate of the given file
    descriptor.  The remaining arguments are the same as for socket().
fromfd(fd, family, type[, proto]) -> socket object
fromfd ( fd family type [ proto ] ) - > socket object
def fromfd(fd, family, type, proto=0):
    """ fromfd(fd, family, type[, proto]) -> socket object

    Create a socket object from a duplicate of the given file
    descriptor.  The remaining arguments are the same as for socket().
    """
    nfd = dup(fd)
    return socket(family, type, proto, nfd)
def fromfd ( fd , family , type , proto = 0 ) : nfd = dup ( fd ) return socket ( family , type , proto , nfd )