summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/intro.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-11-08 14:06:24 (GMT)
committerGitHub <noreply@github.com>2017-11-08 14:06:24 (GMT)
commit54cc0c0789af8ff2396cb19095b7ab269f2bc06c (patch)
tree835bf467db012e96f86f78bf6efd275ad9e7ebea /Doc/c-api/intro.rst
parent28ab3ce92402d86aa400960d38f0d69f498bb677 (diff)
downloadcpython-54cc0c0789af8ff2396cb19095b7ab269f2bc06c.zip
cpython-54cc0c0789af8ff2396cb19095b7ab269f2bc06c.tar.gz
cpython-54cc0c0789af8ff2396cb19095b7ab269f2bc06c.tar.bz2
bpo-31338: C API intro: add missing versionadded (#4339)
Diffstat (limited to 'Doc/c-api/intro.rst')
-rw-r--r--Doc/c-api/intro.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/c-api/intro.rst b/Doc/c-api/intro.rst
index de7139b..6323180 100644
--- a/Doc/c-api/intro.rst
+++ b/Doc/c-api/intro.rst
@@ -112,23 +112,33 @@ complete listing.
Return the absolute value of ``x``.
+ .. versionadded:: 3.3
+
.. c:macro:: Py_MIN(x, y)
Return the minimum value between ``x`` and ``y``.
+ .. versionadded:: 3.3
+
.. c:macro:: Py_MAX(x, y)
Return the maximum value between ``x`` and ``y``.
+ .. versionadded:: 3.3
+
.. c:macro:: Py_STRINGIFY(x)
Convert ``x`` to a C string. E.g. ``Py_STRINGIFY(123)`` returns
``"123"``.
+ .. versionadded:: 3.4
+
.. c:macro:: Py_MEMBER_SIZE(type, member)
Return the size of a structure (``type``) ``member`` in bytes.
+ .. versionadded:: 3.6
+
.. c:macro:: Py_CHARMASK(c)
Argument must be a character or an integer in the range [-128, 127] or [0,