From b85e10fd12b2f2517a8e89c5142c4e4fefec1605 Mon Sep 17 00:00:00 2001 From: Guo Ci Date: Wed, 29 Oct 2025 17:21:26 -0400 Subject: [PATCH] gh-120057: add `os.reload_environ` to `__all__` (#140763) Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: Alex Waygood --- Lib/os.py | 1 + .../next/Library/2025-10-29-16-12-41.gh-issue-120057.qGj5Dl.rst | 1 + 2 files changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2025-10-29-16-12-41.gh-issue-120057.qGj5Dl.rst diff --git a/Lib/os.py b/Lib/os.py index 6e6db96b3071..52cbc5bc8586 100644 --- 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 index 000000000000..f6b42be1fbf5 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-10-29-16-12-41.gh-issue-120057.qGj5Dl.rst @@ -0,0 +1 @@ +Add :func:`os.reload_environ` to ``os.__all__``. -- 2.47.3