Skip to content

gh-120057: add os.reload_environ to __all__#140763

Merged
AlexWaygood merged 4 commits into
python:mainfrom
guoci:append_os_reload_environ_to_dunder_all
Oct 29, 2025
Merged

gh-120057: add os.reload_environ to __all__#140763
AlexWaygood merged 4 commits into
python:mainfrom
guoci:append_os_reload_environ_to_dunder_all

Conversation

@guoci

@guoci guoci commented Oct 29, 2025

Copy link
Copy Markdown
Contributor

@StanFromIreland

Copy link
Copy Markdown
Member

This should have a NEWS entry IMO.

@AlexWaygood AlexWaygood changed the title add os.reload_environ to __all__ gh-120057: add os.reload_environ to __all__ Oct 29, 2025
@AlexWaygood AlexWaygood added the needs backport to 3.14 bugs and security fixes label Oct 29, 2025

@AlexWaygood AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I agree this should have a NEWS entry.

Cc. @vstinner as author of #126268.

We could consider adding a test for the os module like this one for inspect, to make sure that __all__ is kept up-to-date in the future:

def test__all__(self):
support.check__all__(self, inspect, not_exported=("modulesbyfile",), extra=("get_annotations",))

But that can be done as a standalone change; it doesn't need to be done here IMO

@AlexWaygood AlexWaygood self-assigned this Oct 29, 2025
Comment thread Misc/NEWS.d/next/Library/2025-10-29-16-12-41.gh-issue-None.qGj5Dl.rst Outdated
….rst

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>

@AlexWaygood AlexWaygood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@AlexWaygood AlexWaygood force-pushed the append_os_reload_environ_to_dunder_all branch from 53efc2a to 40331e6 Compare October 29, 2025 16:21
@AlexWaygood AlexWaygood enabled auto-merge (squash) October 29, 2025 16:21
@StanFromIreland

Copy link
Copy Markdown
Member

CI failure is unrelated, I will rerun when possible.

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Well spotted, I forgot about __all__ when I added the function.

@AlexWaygood

Copy link
Copy Markdown
Member

ARM workers are currently down across all GitHub, which apparently means that no CPython PRs can currently be merged https://www.githubstatus.com/

@vstinner

Copy link
Copy Markdown
Member

I reran the failing ARM jobs. Let's see if GHA feels better yet or not.

@AlexWaygood AlexWaygood merged commit b85e10f into python:main Oct 29, 2025
261 of 280 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @guoci for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Oct 29, 2025
(cherry picked from commit b85e10f)

Co-authored-by: Guo Ci <zguoci@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
@bedevere-app

bedevere-app Bot commented Oct 29, 2025

Copy link
Copy Markdown

GH-140773 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Oct 29, 2025
AlexWaygood added a commit that referenced this pull request Oct 29, 2025
…140773)

Co-authored-by: Guo Ci <zguoci@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
StanFromIreland added a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants