mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
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.
This commit is contained in:
parent
0fc8575412
commit
07fda7e3a0
2 changed files with 7 additions and 4 deletions
|
@ -3011,7 +3011,8 @@ Return the protocol number for the named protocol. (Rarely used.)");
|
|||
|
||||
#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 @@ PyDoc_STRVAR(socketpair_doc,
|
|||
\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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue