Skip to content

Commit 7fe7d83

Browse files
bpo-42620: Improve socket.getsockname doc string (GH-23742)
Signed-off-by: Christian Heimes <[email protected]> (cherry picked from commit cf3565c) Co-authored-by: Christian Heimes <[email protected]>
1 parent 8e5c61a commit 7fe7d83

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
@@ -3407,8 +3407,9 @@ sock_getsockname(PySocketSockObject *s, PyObject *Py_UNUSED(ignored))
34073407
PyDoc_STRVAR(getsockname_doc,
34083408
"getsockname() -> address info\n\
34093409
\n\
3410-
Return the address of the local endpoint. For IP sockets, the address\n\
3411-
info is a pair (hostaddr, port).");
3410+
Return the address of the local endpoint. The format depends on the\n\
3411+
address family. For IPv4 sockets, the address info is a pair\n\
3412+
(hostaddr, port).");
34123413

34133414

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

0 commit comments

Comments
 (0)