[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

Brandt Bucher report at bugs.python.org
Mon Aug 23 13:37:53 EDT 2021


Brandt Bucher <brandtbucher at gmail.com> added the comment:

Could this issue be fixed in marshal itself? Off the top of my head, one possible option could be to use the marshalled bytes of each elements as a sort key, rather than the elements themselves. So serialize, *then* sort?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37596>
_______________________________________


More information about the Python-bugs-list mailing list