Skip to content

Commit ecc5441

Browse files
authored
Add IPv6 into to the docstring for socket.getsockname (#102961)
Signed-off-by: Brian Haley <[email protected]>
1 parent f192a55 commit ecc5441

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
@@ -3538,7 +3538,8 @@ PyDoc_STRVAR(getsockname_doc,
35383538
\n\
35393539
Return the address of the local endpoint. The format depends on the\n\
35403540
address family. For IPv4 sockets, the address info is a pair\n\
3541-
(hostaddr, port).");
3541+
(hostaddr, port). For IPv6 sockets, the address info is a 4-tuple\n\
3542+
(hostaddr, port, flowinfo, scope_id).");
35423543
#endif
35433544

35443545

0 commit comments

Comments
 (0)