New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-40889: special-case dict.items() ^ dict.items() for performance #20718
Conversation
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
This reverts commit 1ef9f93.
| return NULL; | ||
| } | ||
|
|
||
| PyObject *key = NULL, *val1 = NULL, *val2 = NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I generally expect these declarations to go at the top of the function (it's not required but it is the usual style in our C code).
|
Aside from the stylistic clean-ups of moving the declarations to the top of the function, this all looks fine to me. Will wait for Inada to take another look. |
|
This PR doesn't check that d2 size is changed during iteration. |
https://bugs.python.org/issue40889