summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-05-29 21:02:37 (GMT)
committerSteve Dower <steve.dower@python.org>2019-05-29 21:02:37 (GMT)
commit8f96c9f8ed2a4795e34b333411451e24f28f74d2 (patch)
tree0f87bcc9b18f6d6c907bd040e0bc9af794a155ba /Doc
parentfecb75c1bb46c818e6579ba422cfa5d0d9d104d1 (diff)
downloadcpython-8f96c9f8ed2a4795e34b333411451e24f28f74d2.zip
cpython-8f96c9f8ed2a4795e34b333411451e24f28f74d2.tar.gz
cpython-8f96c9f8ed2a4795e34b333411451e24f28f74d2.tar.bz2
bpo-37007: Implement socket.if_nametoindex(), if_indextoname() and if_nameindex() on Windows (GH-13522)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/socket.rst15
-rw-r--r--Doc/whatsnew/3.8.rst4
2 files changed, 16 insertions, 3 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
index 5be2b76..e0dbbb4 100644
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -1034,10 +1034,13 @@ The :mod:`socket` module also offers various network-related services:
(index int, name string) tuples.
:exc:`OSError` if the system call fails.
- .. availability:: Unix.
+ .. availability:: Unix, Windows.
.. versionadded:: 3.3
+ .. versionchanged:: 3.8
+ Windows support was added.
+
.. function:: if_nametoindex(if_name)
@@ -1045,10 +1048,13 @@ The :mod:`socket` module also offers various network-related services:
interface name.
:exc:`OSError` if no interface with the given name exists.
- .. availability:: Unix.
+ .. availability:: Unix, Windows.
.. versionadded:: 3.3
+ .. versionchanged:: 3.8
+ Windows support was added.
+
.. function:: if_indextoname(if_index)
@@ -1056,10 +1062,13 @@ The :mod:`socket` module also offers various network-related services:
interface index number.
:exc:`OSError` if no interface with the given index exists.
- .. availability:: Unix.
+ .. availability:: Unix, Windows.
.. versionadded:: 3.3
+ .. versionchanged:: 3.8
+ Windows support was added.
+
.. _socket-objects:
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index 5cd9a8e..5ee9cf0 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -556,6 +556,10 @@ convenience functions to automate the necessary tasks usually involved when
creating a server socket, including accepting both IPv4 and IPv6 connections
on the same socket. (Contributed by Giampaolo Rodola in :issue:`17561`.)
+The :func:`socket.if_nameindex()`, :func:`socket.if_nametoindex()`, and
+:func:`socket.if_indextoname()` functions have been implemented on Windows.
+(Contributed by Zackery Spytz in :issue:`37007`.)
+
shlex
----------