https://github.com/python/cpython/commit/6e70c75d1bad67bb0f7248abe081161d28f7ea6a commit: 6e70c75d1bad67bb0f7248abe081161d28f7ea6a branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: AlexWaygood <[email protected]> date: 2025-10-29T22:22:20Z summary:
[3.14] gh-120057: add `os.reload_environ` to `__all__` (GH-140763) (#140773) Co-authored-by: Guo Ci <[email protected]> Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Alex Waygood <[email protected]> files: A Misc/NEWS.d/next/Library/2025-10-29-16-12-41.gh-issue-120057.qGj5Dl.rst M Lib/os.py diff --git a/Lib/os.py b/Lib/os.py index 12926c832f5ba5..ac03b4163906a5 100644 --- a/Lib/os.py +++ b/Lib/os.py @@ -813,6 +813,7 @@ def reload_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 00000000000000..f6b42be1fbf50d --- /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__``. _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
