https://github.com/python/cpython/commit/7ca34db12bf3f6b10e90aac82414a6d384f05a79
commit: 7ca34db12bf3f6b10e90aac82414a6d384f05a79
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: vstinner <[email protected]>
date: 2025-11-12T17:03:55Z
summary:

[3.13] gh-141004: Document `Py_MATH_{E, PI, TAU}` constants (GH-141373) 
(#141472)

gh-141004: Document `Py_MATH_{E, PI, TAU}` constants (GH-141373)
(cherry picked from commit f1330b35b8eb43904dfed0656acde80c08d63176)

Co-authored-by: Stan Ulbrych <[email protected]>

files:
M Doc/c-api/float.rst

diff --git a/Doc/c-api/float.rst b/Doc/c-api/float.rst
index 1a3857277b943a..ad63359bf9b15e 100644
--- a/Doc/c-api/float.rst
+++ b/Doc/c-api/float.rst
@@ -96,16 +96,33 @@ Floating-Point Objects
    the C11 standard ``<math.h>`` header.
 
 
+.. c:macro:: Py_MATH_E
+
+   The definition (accurate for a :c:expr:`double` type) of the :data:`math.e` 
constant.
+
+
 .. c:macro:: Py_MATH_El
 
    High precision (long double) definition of :data:`~math.e` constant.
 
 
+.. c:macro:: Py_MATH_PI
+
+   The definition (accurate for a :c:expr:`double` type) of the 
:data:`math.pi` constant.
+
+
 .. c:macro:: Py_MATH_PIl
 
    High precision (long double) definition of :data:`~math.pi` constant.
 
 
+.. c:macro:: Py_MATH_TAU
+
+   The definition (accurate for a :c:expr:`double` type) of the 
:data:`math.tau` constant.
+
+   .. versionadded:: 3.6
+
+
 .. c:macro:: Py_RETURN_NAN
 
    Return :data:`math.nan` from a function.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to