summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-11-05 07:43:34 (GMT)
committerGitHub <noreply@github.com>2024-11-05 07:43:34 (GMT)
commit4a0d574273819b2b5006decb661da05b3baa8a4b (patch)
tree7df2f1e8166cc6bc4c6c4b032b406a4cdf990322 /Doc/whatsnew
parentd3840503b0f590ee574fbdf3c96626ff8b3c45f6 (diff)
downloadcpython-4a0d574273819b2b5006decb661da05b3baa8a4b.zip
cpython-4a0d574273819b2b5006decb661da05b3baa8a4b.tar.gz
cpython-4a0d574273819b2b5006decb661da05b3baa8a4b.tar.bz2
gh-120057: Add os.reload_environ() function (#126268)
Replace the os.environ.refresh() method with a new os.reload_environ() function. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.14.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/whatsnew/3.14.rst b/Doc/whatsnew/3.14.rst
index 80c1a93..9300de4 100644
--- a/Doc/whatsnew/3.14.rst
+++ b/Doc/whatsnew/3.14.rst
@@ -365,9 +365,10 @@ operator
os
--
-* Add the :data:`os.environ.refresh() <os.environ>` method to update
- :data:`os.environ` with changes to the environment made by :func:`os.putenv`,
- by :func:`os.unsetenv`, or made outside Python in the same process.
+* Add the :func:`os.reload_environ` function to update :data:`os.environ` and
+ :data:`os.environb` with changes to the environment made by
+ :func:`os.putenv`, by :func:`os.unsetenv`, or made outside Python in the
+ same process.
(Contributed by Victor Stinner in :gh:`120057`.)