Visitar URL original
gh-119613: deprecate Py_IS_NAN/INFINITY and Py_IS_FINITE by skirpichev 路 Pull Request #119701 路 python/cpython 路 GitHub
Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Address review: move deprecation news
  • Loading branch information
skirpichev committed May 29, 2024
commit cee472177870920745e8d50a7b48ce90d1bf5cc7
8 changes: 5 additions & 3 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ Optimizations
Deprecated
==========

* Deprecate ``Py_IS_NAN``, ``Py_IS_INFINITY`` and ``Py_IS_FINITE`` macros,
use instead ``isnan``, ``isinf`` and ``isfinite`` available from ``<math.h>``
since C99. (Contributed by Sergey B Kirpichev in :gh:`119613`.)


Removed
=======
Expand Down Expand Up @@ -195,6 +193,10 @@ Porting to Python 3.14
Deprecated
----------

* Deprecate ``Py_IS_NAN``, ``Py_IS_INFINITY`` and ``Py_IS_FINITE`` macros,
Comment thread
skirpichev marked this conversation as resolved.
Outdated
use instead ``isnan``, ``isinf`` and ``isfinite`` available from ``<math.h>``

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
use instead ``isnan``, ``isinf`` and ``isfinite`` available from ``<math.h>``
use instead :c:func:`!isnan`, :c:func:`!isinf` and :c:func:`!isfinite` available from :file:`math.h`.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, these are usually macros, e.g.:
https://en.cppreference.com/w/c/numeric/math/isinf

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure; but this is about the markup :)

Comment thread
skirpichev marked this conversation as resolved.
Outdated
since C99. (Contributed by Sergey B Kirpichev in :gh:`119613`.)

Removed
-------