-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
gh-142029: Raise ValueError instead of crashing on empty name given to create_builtin()
#142033
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-142029: Raise ValueError instead of crashing on empty name given to create_builtin()
#142033
Conversation
|
This function isn't documented or tested anywhere already, so I haven't added a test. |
|
@dr-carlos Could you please add tests? |
brettcannon
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.
Please add tests.
|
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've added simple tests based on the errors thrown in I have made the requested changes; please review again |
|
Thanks for making the requested changes! @brettcannon: please review the changes made to this pull request. |
TypeError instead of crashing on empty name given to create_builtin()ValueError instead of crashing on empty name given to create_builtin()
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
Co-authored-by: Victor Stinner <[email protected]>
|
Anything blocking this PR? |
|
Thanks @dr-carlos for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Thanks @dr-carlos for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Sorry, @dr-carlos and @kumaraditya303, I could not cleanly backport this to |
|
Sorry, @dr-carlos and @kumaraditya303, I could not cleanly backport this to |
|
The bug is present in main only, skipping backport. |
create_builtinwith invalid object #142029