[Python-checkins] python/dist/src/Modules socketmodule.c, 1.301, 1.302

davecole at users.sourceforge.net davecole at users.sourceforge.net
Mon Aug 23 07:16:26 CEST 2004


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8009/Modules
Modified Files:
	socketmodule.c 
Log Message:
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.
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.301
retrieving revision 1.302
diff -u -d -r1.301 -r1.302
--- socketmodule.c	23 Aug 2004 04:54:53 -0000	1.301
+++ socketmodule.c	23 Aug 2004 05:16:23 -0000	1.302
@@ -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 */
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /