Build a pair of connected socket objects using the given address
family, socket type and protocol number. Address family, socket type
and protocol number are as for the \function{socket()} function above.
-Availability: \UNIX.
-\versionadded{2.4}
+The default family is AF_UNIX if defined for the platform, otherwise
+the default is AF_INET.
+Availability: \UNIX. \versionadded{2.4}
\end{funcdesc}
\begin{funcdesc}{fromfd}{fd, family, type\optional{, proto}}
#ifdef HAVE_SOCKETPAIR
/* Create a pair of sockets using the socketpair() function.
- Arguments as for socket(). */
+ Arguments as for socket() except the default family is AF_UNIX if
+ defined for the platform, otherwise the default is AF_INET. */
/*ARGSUSED*/
static PyObject *
\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().");
+The arguments are the same as for socket() except the default family is\n\
+AF_UNIX if defined for the platform, otherwise the default is AF_INET.");
#endif /* HAVE_SOCKETPAIR */