Skip to content

Commit 7854012

Browse files
authored
bpo-46917: math.nan is now always available (GH-31793)
1 parent 8a207e0 commit 7854012

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

Doc/library/math.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,9 @@ Constants
649649
A floating-point "not a number" (NaN) value. Equivalent to the output of
650650
``float('nan')``.
651651

652+
.. versionchanged:: 3.11
653+
It is now always available.
654+
652655
.. versionadded:: 3.5
653656

654657

Doc/whatsnew/3.11.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ inspect
254254

255255
math
256256
----
257+
257258
* Add :func:`math.exp2`: return 2 raised to the power of x.
258259
(Contributed by Gideon Mitchell in :issue:`45917`.)
259260

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

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

270274
operator
271275
--------
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The :data:`math.nan` value is now always available. Patch by Victor Stinner.

0 commit comments

Comments
 (0)