Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-46917: math.nan is now always available
  • Loading branch information
vstinner committed Mar 10, 2022
commit 7b18d012d68a9de2eebafdc9a47b8ca687479317
3 changes: 3 additions & 0 deletions Doc/library/math.rst
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,9 @@ Constants
A floating-point "not a number" (NaN) value. Equivalent to the output of
``float('nan')``.

.. versionchanged:: 3.11
It is now always available.

.. versionadded:: 3.5


Expand Down
4 changes: 4 additions & 0 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ inspect

math
----

* Add :func:`math.exp2`: return 2 raised to the power of x.
(Contributed by Gideon Mitchell in :issue:`45917`.)

Expand All @@ -266,6 +267,9 @@ math
``inf``. Previously they raised :exc:`ValueError`. (Contributed by Mark
Dickinson in :issue:`44339`.)

* The :data:`math.nan` value is now always available.
(Contributed by Victor Stinner in :issue:`46917`.)


operator
--------
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The :data:`math.nan` value is now always available. Patch by Victor Stinner.