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
Commit a4b8ab9
Browse filesBrowse the repository at this point in the historyBrowse files
gh-159184: Make the marshal order of set elements with equal dumps stable
Set elements with the same dump (NaNs which are distinct objects) were
written in set iteration order, which depends on their addresses. When
one of them is also referenced elsewhere in the dump, the position of
the reference among them changed from run to run.
Elements with equal dumps are now ordered by when they were first
written in this dump; floats and complex numbers not written yet are
interchangeable, and which one is which is decided when one of them is
referenced again. This relies on the writer knowing exactly which
objects it has written (gh-129724).
The elements are sorted with qsort() on the bytes of their dumps,
in an array instead of a list of tuples.
0 commit comments