Skip to content
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
11 changes: 10 additions & 1 deletion Doc/c-api/structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -725,11 +725,20 @@ The following flags can be used with :c:member:`PyMemberDef.flags`:
.. versionchanged:: 3.12

The :c:macro:`!READONLY` macro was renamed to :c:macro:`Py_READONLY`.
The :c:macro:`!PY_AUDIT_READ` macro was renamed with the ``Py_`` prefix.
The :c:macro:`PY_AUDIT_READ` macro was renamed with the ``Py_`` prefix.
The new names are now always available.
Previously, these required ``#include "structmember.h"``.
The header is still available and it provides the old names.

.. c:macro:: PY_AUDIT_READ

Soft-deprecated alias of :c:macro:`Py_AUDIT_READ` (note capitalization of
the ``y``).
Only available with ``#include "structmember.h"``.

.. soft-deprecated:: 3.12
Use :c:macro:`Py_AUDIT_READ` instead.

.. _PyMemberDef-types:

Member types
Expand Down
Loading