-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-121300: Add replace
to copy.__all__
#121302
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
Conversation
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
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.
@@ -56,7 +56,7 @@ class Error(Exception): | |||
pass | |||
error = Error # backward compatibility | |||
|
|||
__all__ = ["Error", "copy", "deepcopy"] | |||
__all__ = ["Error", "copy", "deepcopy", "replace"] |
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.
Consider adding a regression test so this doesn't happen again. See helper method support.test__all__
in the test directory—it automatically detects public methods based on whether they follow the public name convention.
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.
Sure, let me go ahead, good callout.
@serhiy-storchaka If you want to take another look. |
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!
Thanks @max-muoto for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
(cherry picked from commit 7c66906) Co-authored-by: Max Muoto <maxmuoto@gmail.com>
GH-121337 is a backport of this pull request to the 3.13 branch. |
|
Adds missing replace to
copy.__all__
copy.replace
isn't in__all__
#121300