Carl Friedrich Bolz-Tereick pushed to branch branch/py3.10 at PyPy / pypy
Commits: 3ad9b8f9 by Carl Friedrich Bolz-Tereick at 2023-03-01T10:57:46+01:00 bpo-43475: we aren't following the identity-based NaN hash changes of CPython, because for us float('nan') is float('nan') returns True. However, for *subclasses* of float hash(Float('nan')) needs to be based on the identity of the object, in order to prevent the quadratic behaviour that the CPython change fixes --HG-- branch : py3.10 - - - - - 2 changed files: - pypy/objspace/std/floatobject.py - pypy/objspace/std/test/test_floatobject.py View it on Heptapod: https://foss.heptapod.net/pypy/pypy/-/commit/3ad9b8f98dc8972b5e9c7040c0d2a697a61dc832 -- View it on Heptapod: https://foss.heptapod.net/pypy/pypy/-/commit/3ad9b8f98dc8972b5e9c7040c0d2a697a61dc832 You're receiving this email because of your account on foss.heptapod.net.
_______________________________________________ pypy-commit mailing list -- pypy-commit@python.org To unsubscribe send an email to pypy-commit-le...@python.org https://mail.python.org/mailman3/lists/pypy-commit.python.org/ Member address: arch...@mail-archive.com