]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42620: Improve socket.getsockname doc string (GH-23742)
authorChristian Heimes <christian@python.org>
Wed, 23 Dec 2020 07:25:57 +0000 (08:25 +0100)
committerGitHub <noreply@github.com>
Wed, 23 Dec 2020 07:25:57 +0000 (23:25 -0800)
Signed-off-by: Christian Heimes <christian@python.org>
Modules/socketmodule.c

index f8e4de5825f7ad2835a58c7c4c77c37f98e1b5aa..bb33db0fa47b8c707d3a813ec874196c74f5eecf 100644 (file)
@@ -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 :-( */