From: Christian Heimes Date: Wed, 23 Dec 2020 07:25:57 +0000 (+0100) Subject: bpo-42620: Improve socket.getsockname doc string (GH-23742) X-Git-Tag: v3.10.0a4~103 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf3565ca9a7ed0f7decd000e41fa3de400986e4d;p=thirdparty%2FPython%2Fcpython.git bpo-42620: Improve socket.getsockname doc string (GH-23742) Signed-off-by: Christian Heimes --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index f8e4de5825f7..bb33db0fa47b 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -3365,8 +3365,9 @@ sock_getsockname(PySocketSockObject *s, PyObject *Py_UNUSED(ignored)) PyDoc_STRVAR(getsockname_doc, "getsockname() -> address info\n\ \n\ -Return the address of the local endpoint. For IP sockets, the address\n\ -info is a pair (hostaddr, port)."); +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)."); #ifdef HAVE_GETPEERNAME /* Cray APP doesn't have this :-( */