New submission from Amaury Forgeot d Arc <[email protected]>: First reported in https://bitbucket.org/pypy/compatibility/issue/2/pyyaml-310-test-failure-with-complex Two distinct complex numbers can have the same id():
>>>> l = [-0.5j, 0.6-0.5j] >>>> map(id, l) (-36965545741457031161L, -36965545741457031161L) This breaks memoization in the Yaml serializer, but also pickle! >>>> pickle.loads(pickle.dumps(l)) [-0.5j, -0.5j] ---------- messages: 5435 nosy: amaury, pypy-issue priority: critical status: unread title: Wrong immutable_unique_id() for complex objects ________________________________________ PyPy bug tracker <[email protected]> <https://bugs.pypy.org/issue1418> ________________________________________ _______________________________________________ pypy-issue mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-issue
