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

Inada Naoki report at bugs.python.org
Wed May 26 20:44:48 EDT 2021


Inada Naoki <songofacandy at gmail.com> added the comment:

> If that's the case, then the argument Raymond provided against preserving order does not seem that relevant, as we would only need to preserve the order in the creation operation.

Note that PYC files are marshalled from code objects including frozenset instance, not from AST.
When marshaling, frozenset instance is created already and its creation order is lost .

----------

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


More information about the Python-bugs-list mailing list