#NEWLINE# def socketpair( family = None , type = SOCK_STREAM , proto = 0 ) : #NEWLINE# #INDENT# 'socketpair([family[, type[, proto]]]) -> (socket object, socket object)\n\n        Create a pair of socket objects from the sockets returned by the platform\n        socketpair() function.\n        The arguments are the same as for socket() except the default family is\n        AF_UNIX if defined on the platform; otherwise, the default is AF_INET.\n        ' #NEWLINE# if ( family is None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# family = AF_UNIX #NEWLINE# #UNINDENT# except NameError : #NEWLINE# #INDENT# family = AF_INET #NEWLINE# #UNINDENT# #UNINDENT# ( a , b ) = _socket . socketpair ( family , type , proto ) #NEWLINE# a = socket ( family , type , proto , a . detach ( ) ) #NEWLINE# b = socket ( family , type , proto , b . detach ( ) ) #NEWLINE# return ( type , b )