-
-
Notifications
You must be signed in to change notification settings - Fork 34.1k
gh-140924: In locale module, add missing functions to __all__
#140925
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
base: main
Are you sure you want to change the base?
Conversation
cmaloney
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.
I think this is a good improvement as is, localize and delocalize are both documented functions in the module.
https://docs.python.org/3/library/locale.html#locale.delocalize
https://docs.python.org/3/library/locale.html#locale.localize
|
I think you want the test to be in a separate PR, I will revert the "add test" commit. |
|
I hadn't realized how long the list of entries expected to be left out was for this module... I'm planning to propose a more general that that covers every stdlib module which uses |
|
cc: @malemburg (Experts index for locale) |
|
These API are available in the
(there may be more - I currently only have access to Python 3.12) Out of these I found these to be undocumented / only used internally:
|
|
Here's a quick script to check these things: |
|
Does this PR need any more modification? |
It would be good to add the missing attributes to |
Misc/NEWS.d/next/Library/2025-11-02-22-24-13.gh-issue-140924.NQVbR_.rst
Outdated
Show resolved
Hide resolved
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
|
I have made the requested changes; please review again |
|
Thanks for making the requested changes! @malemburg: please review the changes made to this pull request. |
|
@malemburg is that ok? |
localemodule, add missing functions to__all__#140924