Skip to content

Conversation

@hunterhogan
Copy link
Contributor

@hunterhogan hunterhogan commented Jun 21, 2025

Copy link
Member

@terryjreedy terryjreedy left a comment

Choose a reason for hiding this comment

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

See the issue for whether this new feature should be added. -1 until there is a positive coredev decision to do do.

@bedevere-app
Copy link

bedevere-app bot commented Jun 22, 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.

PyObject *empty_tuple, *empty_dict;
empty_tuple = PyTuple_New(0);
if (!empty_tuple ||
empty_dict = PyDict_New();
Copy link
Member

Choose a reason for hiding this comment

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

I think this is technically unsafe: if PyTuple_New raised an exception, we can't generally call other C API functions with an exception set. Safer to have a separate if statement for the dict.

@JelleZijlstra
Copy link
Member

I'm OK with adding this in 3.15 but please add a test.

@hunterhogan
Copy link
Contributor Author

I'm OK with adding this in 3.15 but please add a test.

Someone with more skill than I have should make these changes.

@hunterhogan hunterhogan deleted the ast_field_types branch September 21, 2025 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants