Skip to content

Conversation

@guoci
Copy link
Contributor

@guoci guoci commented Oct 29, 2025

@StanFromIreland
Copy link
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
Copy link
Member

@AlexWaygood AlexWaygood left a comment

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
Copy link
Member

@AlexWaygood AlexWaygood left a comment

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
Member

CI failure is unrelated, I will rerun when possible.

Copy link
Member

@vstinner vstinner left a comment

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
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
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

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 <[email protected]>
Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Alex Waygood <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Oct 29, 2025

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 <[email protected]>
Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Alex Waygood <[email protected]>
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