diff Modules/socketmodule.c @ 33239:fb9869044bba legacy-trunk

Updated the socketpair() docstring and documentation to explain that the default famility is AF_UNIX if defined for the platform, otherwise the default is AF_INET.
author Dave Cole <djc@object-craft.com.au>
date Mon, 23 Aug 2004 05:16:23 +0000
parents f98e59f2f89d
children 965e96e15299
line wrap: on
line diff
--- a/Modules/socketmodule.c	Mon Aug 23 04:54:53 2004 +0000
+++ b/Modules/socketmodule.c	Mon Aug 23 05:16:23 2004 +0000
@@ -3011,7 +3011,8 @@
 
 #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 *
@@ -3058,7 +3059,8 @@
 \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 */