镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
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 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 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.