GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — gh-135797 Add default empty dict for ast._field_types attribute. by hunterhogan · Pull Request #135800 · python/cpython Conversation
|
|
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 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| PyObject *empty_tuple, *empty_dict; | ||
| empty_tuple = PyTuple_New(0); | ||
| if (!empty_tuple || | ||
| empty_dict = PyDict_New(); |
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm OK with adding this in 3.15 but please add a test. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Someone with more skill than I have should make these changes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.