Skip to content

Commit 1692a16

Browse files
[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 ecc5441) Signed-off-by: Brian Haley <haleyb.dev@gmail.com> Co-authored-by: Brian Haley <brianphaley@gmail.com>
1 parent d691de1 commit 1692a16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Modules/socketmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3411,7 +3411,8 @@ PyDoc_STRVAR(getsockname_doc,
34113411
\n\
34123412
Return the address of the local endpoint. The format depends on the\n\
34133413
address family. For IPv4 sockets, the address info is a pair\n\
3414-
(hostaddr, port).");
3414+
(hostaddr, port). For IPv6 sockets, the address info is a 4-tuple\n\
3415+
(hostaddr, port, flowinfo, scope_id).");
34153416
#endif
34163417

34173418

0 commit comments

Comments
 (0)