diff --git a/Doc/c-api/structures.rst b/Doc/c-api/structures.rst index 40557251a79c0a..c1685fbfaea5dd 100644 --- a/Doc/c-api/structures.rst +++ b/Doc/c-api/structures.rst @@ -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