]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46917: math.nan is now always available (GH-31793)
authorVictor Stinner <vstinner@python.org>
Thu, 10 Mar 2022 16:47:18 +0000 (17:47 +0100)
committerGitHub <noreply@github.com>
Thu, 10 Mar 2022 16:47:18 +0000 (17:47 +0100)
Doc/library/math.rst
Doc/whatsnew/3.11.rst
Misc/NEWS.d/next/Library/2022-03-10-14-47-16.bpo-46917.s19zcy.rst [new file with mode: 0644]

index 1ad60459e8d3774fde755ed0e721826b614bfe8a..bcbcdef51d3fcb74a96edd2d54c041b020980dcf 100644 (file)
@@ -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
 
 
index 0e3ccb62cbf39fe75bdba72b5727aab5446bf493..ce15fb72f3c49bd4ab4b5c2a951ab284d8d311f3 100644 (file)
@@ -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
 --------
diff --git a/Misc/NEWS.d/next/Library/2022-03-10-14-47-16.bpo-46917.s19zcy.rst b/Misc/NEWS.d/next/Library/2022-03-10-14-47-16.bpo-46917.s19zcy.rst
new file mode 100644 (file)
index 0000000..3fbd84a
--- /dev/null
@@ -0,0 +1 @@
+The :data:`math.nan` value is now always available. Patch by Victor Stinner.