Skip to content

Conversation

@sobolevn
Copy link
Member

@sobolevn sobolevn commented Sep 11, 2023

_PyDict_FromItems can only fail with MemoryError and several other errors which can be considered as disasters, not a regular control flow.

But, it should be now in sync with BUILD_CONST_KEY_MAP

Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

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

Yeah, that's a good catch. This bug looks quite old, it's in 3.11, and I think it existed even before this code was refactored in #31564.

@kumaraditya303 kumaraditya303 merged commit 247ee1b into python:main Sep 12, 2023
@kumaraditya303
Copy link
Contributor

@sobolevn Can you manually backport this to older branches? Thanks

@sobolevn
Copy link
Member Author

Sure, will do later today.

@sobolevn sobolevn added needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes labels Sep 12, 2023
@miss-islington
Copy link
Contributor

Thanks @sobolevn for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington
Copy link
Contributor

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

@miss-islington
Copy link
Contributor

Sorry, @sobolevn and @kumaraditya303, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 247ee1bf841524667f883ebba5e343101f609026 3.11

@miss-islington
Copy link
Contributor

Sorry, @sobolevn and @kumaraditya303, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 247ee1bf841524667f883ebba5e343101f609026 3.12

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.

6 participants