Skip to content

Conversation

@dr-carlos
Copy link
Contributor

@dr-carlos dr-carlos commented Nov 28, 2025

@dr-carlos
Copy link
Contributor Author

dr-carlos commented Nov 28, 2025

This function isn't documented or tested anywhere already, so I haven't added a test.

@sergey-miryanov
Copy link
Contributor

@dr-carlos Could you please add tests?

Copy link
Member

@brettcannon brettcannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add tests.

@bedevere-app
Copy link

bedevere-app bot commented Nov 28, 2025

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 have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@dr-carlos
Copy link
Contributor Author

dr-carlos commented Nov 28, 2025

I've added simple tests based on the errors thrown in create_builtin().

I have made the requested changes; please review again

@bedevere-app
Copy link

bedevere-app bot commented Nov 28, 2025

Thanks for making the requested changes!

@brettcannon: please review the changes made to this pull request.

@bedevere-app bedevere-app bot requested a review from brettcannon November 28, 2025 21:23
@dr-carlos dr-carlos changed the title gh-142029: Raise TypeError instead of crashing on empty name given to create_builtin() gh-142029: Raise ValueError instead of crashing on empty name given to create_builtin() Dec 2, 2025
Copy link
Member

@vstinner vstinner left a 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]>
@vstinner vstinner dismissed brettcannon’s stale review December 3, 2025 10:34

Tests have been added.

@dr-carlos
Copy link
Contributor Author

Anything blocking this PR?

@kumaraditya303 kumaraditya303 merged commit 7067126 into python:main Dec 10, 2025
46 checks passed
@kumaraditya303 kumaraditya303 added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Dec 10, 2025
@miss-islington-app
Copy link

Thanks @dr-carlos for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Thanks @dr-carlos for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry, @dr-carlos and @kumaraditya303, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 70671267c11c562c6ca682eebf863616b258c20a 3.13

@miss-islington-app
Copy link

Sorry, @dr-carlos and @kumaraditya303, I could not cleanly backport this to 3.14 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 70671267c11c562c6ca682eebf863616b258c20a 3.14

@kumaraditya303 kumaraditya303 removed needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Dec 10, 2025
@kumaraditya303
Copy link
Contributor

The bug is present in main only, skipping backport.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants