Skip to content

Commit 54cc0c0

Browse files
authored
bpo-31338: C API intro: add missing versionadded (#4339)
1 parent 28ab3ce commit 54cc0c0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Doc/c-api/intro.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,23 +112,33 @@ complete listing.
112112
113113
Return the absolute value of ``x``.
114114

115+
.. versionadded:: 3.3
116+
115117
.. c:macro:: Py_MIN(x, y)
116118
117119
Return the minimum value between ``x`` and ``y``.
118120

121+
.. versionadded:: 3.3
122+
119123
.. c:macro:: Py_MAX(x, y)
120124
121125
Return the maximum value between ``x`` and ``y``.
122126

127+
.. versionadded:: 3.3
128+
123129
.. c:macro:: Py_STRINGIFY(x)
124130
125131
Convert ``x`` to a C string. E.g. ``Py_STRINGIFY(123)`` returns
126132
``"123"``.
127133

134+
.. versionadded:: 3.4
135+
128136
.. c:macro:: Py_MEMBER_SIZE(type, member)
129137
130138
Return the size of a structure (``type``) ``member`` in bytes.
131139

140+
.. versionadded:: 3.6
141+
132142
.. c:macro:: Py_CHARMASK(c)
133143
134144
Argument must be a character or an integer in the range [-128, 127] or [0,

0 commit comments

Comments
 (0)