aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2020-12-23 08:25:57 +0100
committerGitHub <noreply@github.com>2020-12-22 23:25:57 -0800
commitcf3565ca9a7ed0f7decd000e41fa3de400986e4d (patch)
tree4efddb4beaf266584a8742731ecb571d70abbc9e /Modules
parentbpo-39465: Add pycore_atomic_funcs.h header (GH-20766) (diff)
downloadcpython-cf3565ca9a7ed0f7decd000e41fa3de400986e4d.tar.gz
cpython-cf3565ca9a7ed0f7decd000e41fa3de400986e4d.tar.bz2
cpython-cf3565ca9a7ed0f7decd000e41fa3de400986e4d.zip
bpo-42620: Improve socket.getsockname doc string (GH-23742)
Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index f8e4de5825f..bb33db0fa47 100644
--- a/Modules/socketmodule.c
+++ b/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 :-( */