Message321527
| Author |
methane |
| Recipients |
benjamin.peterson, methane, serhiy.storchaka, vstinner |
| Date |
2018年07月12日.08:31:29 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<CAEfz+Ty4Z6N-x-JVN1htCOEF2gMbH_a9bYXRXd_8qiNpAxkf9w@mail.gmail.com> |
| In-reply-to |
<1531382440.99.0.56676864532.issue34093@psf.upfronthosting.co.za> |
| Content |
> STINNER Victor <vstinner@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. |
|