Uh oh!
There was an error while loading. Please reload this page.
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. |
sergey-miryanov
commented
Nov 28, 2025
@dr-carlos Could you 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. |
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()Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Victor Stinner <vstinner@python.org>
dr-carlos
commented
Dec 9, 2025
Anything blocking this PR? |
Uh 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