From: Brian Haley Date: Thu, 30 Mar 2023 18:40:58 +0000 (-0400) Subject: Add IPv6 into to the docstring for socket.getsockname (#102961) X-Git-Tag: v3.12.0a7~35 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ecc5441505cd7cb54f3d38409c732e2e9f102137;p=thirdparty%2FPython%2Fcpython.git Add IPv6 into to the docstring for socket.getsockname (#102961) Signed-off-by: Brian Haley --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 6a6f8cf7392e..c2b8283d84e5 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -3538,7 +3538,8 @@ PyDoc_STRVAR(getsockname_doc, \n\ 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)."); +(hostaddr, port). For IPv6 sockets, the address info is a 4-tuple\n\ +(hostaddr, port, flowinfo, scope_id)."); #endif