Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[3.15] gh-155218: Generate the option group flags in a stable order (GH-155219) - #155226

Open
serhiy-storchaka wants to merge 1 commit into
python:3.15from
serhiy-storchaka:bp-order-3.15
Open

[3.15] gh-155218: Generate the option group flags in a stable order (GH-155219)#155226
serhiy-storchaka wants to merge 1 commit into
python:3.15from
serhiy-storchaka:bp-order-3.15

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 5, 2026

Copy link
Copy Markdown
Member

They were emitted in the iteration order of a set of group identifiers.
The identifiers of the groups before the required parameters are small
negative integers, -1 and -2 have the same hash, so their order depended
on the size of Py_hash_t, and the code generated on a 32-bit platform
differed from the checked in one.

They are now emitted in the order of the parameters.
(cherry picked from commit 7aec160)

Co-authored-by: Serhiy Storchaka [email protected]
Co-Authored-By: Claude Opus 5 (1M context) [email protected]

…ythonGH-155219)

They were emitted in the iteration order of a set of group identifiers.
The identifiers of the groups before the required parameters are small
negative integers, -1 and -2 have the same hash, so their order depended
on the size of Py_hash_t, and the code generated on a 32-bit platform
differed from the checked in one.

They are now emitted in the order of the parameters.
(cherry picked from commit 7aec160)

Co-authored-by: Serhiy Storchaka <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.

1 participant