summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-01-21 15:13:09 (GMT)
committerGitHub <noreply@github.com>2020-01-21 15:13:09 (GMT)
commit56cd3710a1ea3ba872d345ea1bebc86ed08bc8b8 (patch)
tree53e622226ec54c95227e9c36011b7326fb918899 /Doc
parent59e2d26b258c12f18d8d2e789ef741703d6c52d5 (diff)
downloadcpython-56cd3710a1ea3ba872d345ea1bebc86ed08bc8b8.zip
cpython-56cd3710a1ea3ba872d345ea1bebc86ed08bc8b8.tar.gz
cpython-56cd3710a1ea3ba872d345ea1bebc86ed08bc8b8.tar.bz2
bpo-39413: Implement os.unsetenv() on Windows (GH-18104)
The os.unsetenv() function is now also available on Windows. It is implemented with SetEnvironmentVariableW(name, NULL).
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/os.rst3
-rw-r--r--Doc/whatsnew/3.9.rst3
2 files changed, 6 insertions, 0 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
index 4fec647..de3e560 100644
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -645,6 +645,9 @@ process and user.
.. availability:: most flavors of Unix, Windows.
+ .. versionchanged:: 3.9
+ The function is now also available on Windows.
+
.. _os-newstreams:
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index f40685c..ab27c48 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -216,6 +216,9 @@ Exposed the Linux-specific :func:`os.pidfd_open` (:issue:`38692`) and
:data:`os.P_PIDFD` (:issue:`38713`) for process management with file
descriptors.
+The :func:`os.unsetenv` function is now also available on Windows.
+(Contributed by Victor Stinner in :issue:`39413`.)
+
poplib
------