-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
gh-120057: add os.reload_environ to __all__
#140763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-120057: add os.reload_environ to __all__
#140763
Conversation
|
This should have a NEWS entry IMO. |
os.reload_environ to __all__os.reload_environ to __all__
AlexWaygood
left a comment
There was a problem hiding this 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:
cpython/Lib/test/test_inspect/test_inspect.py
Lines 125 to 126 in 8706167
| 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
Misc/NEWS.d/next/Library/2025-10-29-16-12-41.gh-issue-None.qGj5Dl.rst
Outdated
Show resolved
Hide resolved
….rst Co-authored-by: Stan Ulbrych <[email protected]>
AlexWaygood
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
53efc2a to
40331e6
Compare
|
CI failure is unrelated, I will rerun when possible. |
vstinner
left a comment
There was a problem hiding this 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.
|
ARM workers are currently down across all GitHub, which apparently means that no CPython PRs can currently be merged https://www.githubstatus.com/ |
|
I reran the failing ARM jobs. Let's see if GHA feels better yet or not. |
|
Thanks @guoci for the PR, and @AlexWaygood for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
(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]>
|
GH-140773 is a backport of this pull request to the 3.14 branch. |
…140773) Co-authored-by: Guo Ci <[email protected]> Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Alex Waygood <[email protected]>
@AlexWaygood
Fix as suggested in:
python/typeshed#14938 (review)