Skip to content

Commit cf3565c

Browse files
authored
bpo-42620: Improve socket.getsockname doc string (GH-23742)
Signed-off-by: Christian Heimes <[email protected]>
1 parent 52a327c commit cf3565c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Modules/socketmodule.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3365,8 +3365,9 @@ sock_getsockname(PySocketSockObject *s, PyObject *Py_UNUSED(ignored))
33653365
PyDoc_STRVAR(getsockname_doc,
33663366
"getsockname() -> address info\n\
33673367
\n\
3368-
Return the address of the local endpoint. For IP sockets, the address\n\
3369-
info is a pair (hostaddr, port).");
3368+
Return the address of the local endpoint. The format depends on the\n\
3369+
address family. For IPv4 sockets, the address info is a pair\n\
3370+
(hostaddr, port).");
33703371

33713372

33723373
#ifdef HAVE_GETPEERNAME /* Cray APP doesn't have this :-( */

0 commit comments

Comments
 (0)