]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add IPv6 into to the docstring for socket.getsockname (#102961)
authorBrian Haley <brianphaley@gmail.com>
Thu, 30 Mar 2023 18:40:58 +0000 (14:40 -0400)
committerGitHub <noreply@github.com>
Thu, 30 Mar 2023 18:40:58 +0000 (11:40 -0700)
Signed-off-by: Brian Haley <haleyb.dev@gmail.com>
Modules/socketmodule.c

index 6a6f8cf7392e1cbb352bd14795438e93258c9567..c2b8283d84e5f8b8415106f3f61b34b5a2d4be58 100644 (file)
@@ -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