diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-12-23 07:48:04 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-23 07:48:04 (GMT) |
| commit | 7fe7d83c26b02c8a65c8a9633cc4251f5cd97ebf (patch) | |
| tree | d523899fd02fff5e61effdb8aeb27fd02db273e8 /Modules/socketmodule.c | |
| parent | 8e5c61a075f3a60272a7dcdc48db200090d76309 (diff) | |
| download | cpython-7fe7d83c26b02c8a65c8a9633cc4251f5cd97ebf.zip cpython-7fe7d83c26b02c8a65c8a9633cc4251f5cd97ebf.tar.gz cpython-7fe7d83c26b02c8a65c8a9633cc4251f5cd97ebf.tar.bz2 | |
bpo-42620: Improve socket.getsockname doc string (GH-23742)
Signed-off-by: Christian Heimes <christian@python.org>
(cherry picked from commit cf3565ca9a7ed0f7decd000e41fa3de400986e4d)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Modules/socketmodule.c')
| -rw-r--r-- | Modules/socketmodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 76ef606..be75e68 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -3407,8 +3407,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 :-( */ |
