diff options
author | Victor Stinner <vstinner@python.org> | 2022-03-10 16:47:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 16:47:18 (GMT) |
commit | 7854012077009b9f364f198a8ae38b546ec58313 (patch) | |
tree | d24cc57a1a652f6a126904f27d346c244f148be9 /Doc | |
parent | 8a207e0321db75f3342692905e342f1d5e1add54 (diff) | |
download | cpython-7854012077009b9f364f198a8ae38b546ec58313.zip cpython-7854012077009b9f364f198a8ae38b546ec58313.tar.gz cpython-7854012077009b9f364f198a8ae38b546ec58313.tar.bz2 |
bpo-46917: math.nan is now always available (GH-31793)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/math.rst | 3 | ||||
-rw-r--r-- | Doc/whatsnew/3.11.rst | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Doc/library/math.rst b/Doc/library/math.rst index 1ad6045..bcbcdef 100644 --- a/Doc/library/math.rst +++ b/Doc/library/math.rst @@ -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 diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 0e3ccb6..ce15fb7 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -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 -------- |