You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Argument Clinic generates different code on 32-bit and 64-bit platforms #155218
The identifiers of the groups before the required parameters are small negative integers, and hash(-1) == hash(-2) == -2. The order of colliding keys in a set depends on the probe sequence, and therefore on the size of Py_hash_t, so a 32-bit build generates
group_left_2=1;
group_left_1=1;
where a 64-bit build generates the same two lines in the opposite order.
This affects Modules/clinic/_cursesmodule.c.h in the current tree: addch(), addstr(), addnstr() and 6 other functions have a group before and a group after the required parameters, so regenerating them on a 32-bit platform produces a spurious diff.
The order of these assignments is arbitrary, they can be emitted in the order of the parameters.
Activity
gh-155218: Generate the option group flags in a stable order (GH-155219)
[3.13] gh-155218: Generate the option group flags in a stable order (G…
[3.14] gh-155218: Generate the option group flags in a stable order (G…
[3.14] pythongh-155218: Generate the option group flags in a stable o…
pythongh-155218: Generate the option group flags in a stable order (p…
[3.15] gh-155218: Generate the option group flags in a stable order (G…