From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 22 May 2023 10:46:45 +0000 (-0700) Subject: [3.11] Add IPv6 into to the docstring for socket.getsockname (GH-102961) (#103137) X-Git-Tag: v3.11.4~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1692a16a25e54696a42725fd35e14005492fc09f;p=thirdparty%2FPython%2Fcpython.git [3.11] Add IPv6 into to the docstring for socket.getsockname (GH-102961) (#103137) Add IPv6 into to the docstring for socket.getsockname (GH-102961) (cherry picked from commit ecc5441505cd7cb54f3d38409c732e2e9f102137) Signed-off-by: Brian Haley Co-authored-by: Brian Haley --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 47539d354b49..65d0e10fd253 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -3411,7 +3411,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