summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2021-04-30 00:08:55 (GMT)
committerGitHub <noreply@github.com>2021-04-30 00:08:55 (GMT)
commit87655e2cf58c543914ea05ebe5a0377441da1ef2 (patch)
tree768436c547182d733a35d98562e05ce41470ce35 /Doc/extending
parent9a2c2a9ec3140b6c54c9ef9d994311f114128ee3 (diff)
downloadcpython-87655e2cf58c543914ea05ebe5a0377441da1ef2.zip
cpython-87655e2cf58c543914ea05ebe5a0377441da1ef2.tar.gz
cpython-87655e2cf58c543914ea05ebe5a0377441da1ef2.tar.bz2
bpo-42800: Rename AUDIT_READ to PY_AUDIT_READ (GH-25736)
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/newtypes.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
index 545390c..6e17897 100644
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -287,7 +287,7 @@ combined using bitwise-OR.
+===========================+==============================================+
| :const:`READONLY` | Never writable. |
+---------------------------+----------------------------------------------+
-| :const:`AUDIT_READ` | Emit an ``object.__getattr__`` |
+| :const:`PY_AUDIT_READ` | Emit an ``object.__getattr__`` |
| | :ref:`audit events <audit-events>` before |
| | reading. |
+---------------------------+----------------------------------------------+
@@ -295,15 +295,15 @@ combined using bitwise-OR.
.. versionchanged:: 3.10
:const:`RESTRICTED`, :const:`READ_RESTRICTED` and :const:`WRITE_RESTRICTED`
are deprecated. However, :const:`READ_RESTRICTED` is an alias for
- :const:`AUDIT_READ`, so fields that specify either :const:`RESTRICTED` or
- :const:`READ_RESTRICTED` will also raise an audit event.
+ :const:`PY_AUDIT_READ`, so fields that specify either :const:`RESTRICTED`
+ or :const:`READ_RESTRICTED` will also raise an audit event.
.. index::
single: READONLY
single: READ_RESTRICTED
single: WRITE_RESTRICTED
single: RESTRICTED
- single: AUDIT_READ
+ single: PY_AUDIT_READ
An interesting advantage of using the :c:member:`~PyTypeObject.tp_members` table to build
descriptors that are used at runtime is that any attribute defined this way can