[Python-checkins] Remove documentation for non-existing socket class attributes (GH-28029) (GH-28221)

ambv webhook-mailer at python.org
Tue Sep 7 14:46:07 EDT 2021

commit: d9b7d427ebc1ed5cfef3657d1d92c2d80346147f
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2021-09-07T20:45:57+02:00

Remove documentation for non-existing socket class attributes (GH-28029) (GH-28221)

The functions in question are available on the module-level only.
(cherry picked from commit 34d82ce7cb82a8f5e2e83417d66d9aa319f3bb69)

Co-authored-by: Matti Picus <matti.picus at gmail.com>

M Modules/socketmodule.c

diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 89531851c85756..dcb11ef62053ab 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -151,9 +151,6 @@ getblocking() -- return True if socket is blocking, False if non-blocking\n\
 setsockopt(level, optname, value[, optlen]) -- set socket options\n\
 settimeout(None | float) -- set or clear the timeout\n\
 shutdown(how) -- shut down traffic in one or both directions\n\
-if_nameindex() -- return all network interface indices and names\n\
-if_nametoindex(name) -- return the corresponding interface index\n\
-if_indextoname(index) -- return the corresponding interface name\n\
  [*] not available on all platforms!");

More information about the Python-checkins mailing list