https://github.com/python/cpython/commit/34fe59b878335856ddfec5137fc989f4ec36a973 commit: 34fe59b878335856ddfec5137fc989f4ec36a973 branch: main author: Peter Bierma <[email protected]> committer: encukou <[email protected]> date: 2026-10-20T02:32:08+02:00 summary:
gh-141004: Document `PY_AUDIT_READ` (GH-159720) Co-authored-by: Petr Viktorin <[email protected]> files: M Doc/c-api/structures.rst diff --git a/Doc/c-api/structures.rst b/Doc/c-api/structures.rst index 1ddde5d136b3bb..f281f2e8328bea 100644 --- a/Doc/c-api/structures.rst +++ b/Doc/c-api/structures.rst @@ -760,11 +760,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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
