Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
dr-carlos commented Nov 28, 2025 • edited by bedevere-app bot
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by bedevere-app bot
Uh oh!
There was an error while loading. Please reload this page.
dr-carlos commented Nov 28, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
This function isn't documented or tested anywhere already, so I haven't added a test. |
sergey-miryanov commented Nov 28, 2025
@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 |
dr-carlos commented Nov 28, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
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. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Victor Stinner <[email protected]>
dr-carlos commented Dec 9, 2025
Anything blocking this PR? |
7067126 into python:mainUh oh!
There was an error while loading. Please reload this page.
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 |
kumaraditya303 commented Dec 10, 2025
The bug is present in main only, skipping backport. |
create_builtinwith invalid object #142029