Uh oh!
There was an error while loading. Please reload this page.
GH-145247: Use _PyTuple_FromPair[Steal] in Objects - #145884
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
sergey-miryanov
left a comment
There was a problem hiding this comment.
Address review
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…ey-miryanov/cpython into feat/145247-pytuple-from-pair-use-2
vstinner
left a comment
There was a problem hiding this comment.
This change introduces a leak in the dict type (see my comment below about a leak).
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Victor Stinner <vstinner@python.org>
vstinner
commented
Mar 27, 2026
Ah, there are now compiler warnings, about unused variables if I understood correctly: |
sergey-miryanov
commented
Mar 27, 2026
Yeah, I fixed it. Working on left review comments. |
sergey-miryanov
commented
Mar 27, 2026
@vstinner Thanks for review! Could you please take a look? |
vstinner
left a comment
There was a problem hiding this comment.
LGTM. I have have a few more coding style suggestions.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Victor Stinner <vstinner@python.org>
vstinner
left a comment
There was a problem hiding this comment.
Sorry, more sugestions for dictitems_xor_lock_held() which is the most complex function of this change. I propose further changes to make the code easier to follow.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
vstinner
commented
Mar 27, 2026
Thanks for all updates! I enabled auto-merge on the PR. IMO this change makes the code easier to follow/review. |
sergey-miryanov
commented
Mar 27, 2026
Thanks for review! |
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
It is a second PR for usage of _PyTuple_FromPair[Steal] in the codebase.
PyTuple_FromPair#145247