mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-46917: math.nan is now always available (GH-31793)
This commit is contained in:
parent
8a207e0321
commit
7854012077
3 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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`.)
|
||||
|
||||
|
@ -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
|
||||
--------
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
The :data:`math.nan` value is now always available. Patch by Victor Stinner.
|
Loading…
Add table
Add a link
Reference in a new issue