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? |
|
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()
Co-authored-by: Victor Stinner <vstinner@python.org>
|
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