]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-120057: add `os.reload_environ` to `__all__` (#140763)
authorGuo Ci <zguoci@gmail.com>
Wed, 29 Oct 2025 21:21:26 +0000 (17:21 -0400)
committerGitHub <noreply@github.com>
Wed, 29 Oct 2025 21:21:26 +0000 (21:21 +0000)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Lib/os.py
Misc/NEWS.d/next/Library/2025-10-29-16-12-41.gh-issue-120057.qGj5Dl.rst [new file with mode: 0644]

index 6e6db96b3071f91982de7076ebb88c3459568b05..52cbc5bc85864e7370e888d0781af2cf74618faa 100644 (file)
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -832,6 +832,7 @@ if _exists("_create_environ"):
         env_data.clear()
         env_data.update(data)
 
+    __all__.append("reload_environ")
 
 def getenv(key, default=None):
     """Get an environment variable, return None if it doesn't exist.
diff --git a/Misc/NEWS.d/next/Library/2025-10-29-16-12-41.gh-issue-120057.qGj5Dl.rst b/Misc/NEWS.d/next/Library/2025-10-29-16-12-41.gh-issue-120057.qGj5Dl.rst
new file mode 100644 (file)
index 0000000..f6b42be
--- /dev/null
@@ -0,0 +1 @@
+Add :func:`os.reload_environ` to ``os.__all__``.