Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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
3 changes: 3 additions & 0 deletions 3 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 4 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.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.