[Python-Dev] pickle output not unique

"Martin v. Löwis" martin at v.loewis.de
Tue Aug 3 22:48:23 CEST 2010


> I just wanted to point this out.  We‘ll attempt some local workarounds
> here, but it should otherwise be simple to modify pickling to optionally
> turn off this optimization and always generate the same output
> irrespective of the internal reference counts of the objects.

I think there are many other instances where values that compare equal
pickle differently in Python. By relying on this property for hashing,
you are really operating on thin ice.

Regards,
Martin


More information about the Python-Dev mailing list