[issue34093] Reproducible pyc: FLAG_REF is not stable.
INADA Naoki
report at bugs.python.org
Thu Jul 12 04:31:29 EDT 2018
INADA Naoki <songofacandy at gmail.com> added the comment:
> STINNER Victor <vstinner at redhat.com> added the comment:
>
> According to Serhiy Storchaka, currently marshal.dumps() writes frozenset in arbitrary order, and so frozenset serialization is not reproducible:
> https://mail.python.org/pipermail/python-dev/2018-July/154604.html
PYTHONHASHSEED can be used to stable frozenset order.
On the other hand, refcnt based approach is more unstable.
Even when x is y, dumps(x) == dumps(y) is not guaranteed.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34093>
_______________________________________
More information about the Python-bugs-list
mailing list