Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb2014f commit 1d10bf0Copy full SHA for 1d10bf0
Doc/whatsnew/3.10.rst
@@ -836,6 +836,13 @@ Other Language Changes
836
effectless under ``from __future__ import annotations``.
837
(Contributed by Batuhan Taskaya in :issue:`42725`.)
838
839
+* Hashes of NaN values of both :class:`float` type and
840
+ :class:`decimal.Decimal` type now depend on object identity. Formerly, they
841
+ always hashed to ``0`` even though NaN values are not equal to one another.
842
+ This caused potentially quadratic runtime behavior due to excessive hash
843
+ collisions when creating dictionaries and sets containing multiple NaNs.
844
+ (Contributed by Raymond Hettinger in :issue:`43475`.)
845
+
846
New Modules
847
===========
848
0 commit comments