bpo-42620: Improve socket.getsockname doc string (GH-23742)
Signed-off-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
52a327c1cb
commit
cf3565ca9a
|
@ -3365,8 +3365,9 @@ sock_getsockname(PySocketSockObject *s, PyObject *Py_UNUSED(ignored))
|
||||||
PyDoc_STRVAR(getsockname_doc,
|
PyDoc_STRVAR(getsockname_doc,
|
||||||
"getsockname() -> address info\n\
|
"getsockname() -> address info\n\
|
||||||
\n\
|
\n\
|
||||||
Return the address of the local endpoint. For IP sockets, the address\n\
|
Return the address of the local endpoint. The format depends on the\n\
|
||||||
info is a pair (hostaddr, port).");
|
address family. For IPv4 sockets, the address info is a pair\n\
|
||||||
|
(hostaddr, port).");
|
||||||
|
|
||||||
|
|
||||||
#ifdef HAVE_GETPEERNAME /* Cray APP doesn't have this :-( */
|
#ifdef HAVE_GETPEERNAME /* Cray APP doesn't have this :-( */
|
||||||
|
|
Loading…
Reference in New Issue