summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorBrian Haley <brianphaley@gmail.com>2023-03-30 18:40:58 (GMT)
committerGitHub <noreply@github.com>2023-03-30 18:40:58 (GMT)
commitecc5441505cd7cb54f3d38409c732e2e9f102137 (patch)
tree2fd49bb36304f608470e6ccf2c27568800152d37 /Modules/socketmodule.c
parentf192a558f538489ad1be30aa145e71d942798d1c (diff)
downloadcpython-ecc5441505cd7cb54f3d38409c732e2e9f102137.zip
cpython-ecc5441505cd7cb54f3d38409c732e2e9f102137.tar.gz
cpython-ecc5441505cd7cb54f3d38409c732e2e9f102137.tar.bz2
Add IPv6 into to the docstring for socket.getsockname (#102961)
Signed-off-by: Brian Haley <haleyb.dev@gmail.com>
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 6a6f8cf..c2b8283 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