Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-31338: C API intro: add more versionadded markups #4339

Merged
merged 1 commit into from
Nov 8, 2017
Merged
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
10 changes: 10 additions & 0 deletions Doc/c-api/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down