Browse Source
bpo-42620: Improve socket.getsockname doc string (GH-23742)
Signed-off-by: Christian Heimes <christian@python.org>
pull/23913/head
Christian Heimes
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
Modules/socketmodule.c
|
|
|
@ -3365,8 +3365,9 @@ sock_getsockname(PySocketSockObject *s, PyObject *Py_UNUSED(ignored)) |
|
|
|
PyDoc_STRVAR(getsockname_doc, |
|
|
|
"getsockname() -> address info\n\ |
|
|
|
\n\ |
|
|
|
Return the address of the local endpoint. For IP sockets, the address\n\ |
|
|
|
info is a pair (hostaddr, port)."); |
|
|
|
Return the address of the local endpoint. The format depends on the\n\ |
|
|
|
address family. For IPv4 sockets, the address info is a pair\n\ |
|
|
|
(hostaddr, port)."); |
|
|
|
|
|
|
|
|
|
|
|
#ifdef HAVE_GETPEERNAME /* Cray APP doesn't have this :-( */ |
|
|
|
|