[Python-Dev] pickle output not unique (original) (raw)

Alexander Belopolsky alexander.belopolsky at gmail.com
Wed Aug 4 00:04:32 CEST 2010


2010/8/3 "Martin v. Löwis" <martin at v.loewis.de>: ..

I think there are many other instances where values that compare equal pickle differently in Python.

Indeed. For example:

1.0 == 1 True dumps(1.0) == dumps(1) False

or for objects of the same type

0.0 == -0.0 True dumps(0.0) == dumps(-0.0) False



More information about the Python-Dev mailing list