summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-07-21 11:48:15 (GMT)
committerGitHub <noreply@github.com>2023-07-21 11:48:15 (GMT)
commitac9aa8a369e03784c5df7f2f8b598959fc9ef5f4 (patch)
treeebbf7a80b1c17857f0c2a16bea186817de7ad6b1 /Doc/reference
parent807afdac416356c5e4558f11a8e1cfc5f0c86dd7 (diff)
downloadcpython-ac9aa8a369e03784c5df7f2f8b598959fc9ef5f4.zip
cpython-ac9aa8a369e03784c5df7f2f8b598959fc9ef5f4.tar.gz
cpython-ac9aa8a369e03784c5df7f2f8b598959fc9ef5f4.tar.bz2
[3.12] gh-106919: Use role :c:macro: for referencing the C "constants" (GH-106920) (GH-106951)
(cherry picked from commit fcc816dbff7ca66c26f57a506e4d2330fe41d0ff)
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/compound_stmts.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 6d30ecc..12ad18d 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -1840,7 +1840,7 @@ like ``TYPE_PARAMS_OF_ListOrSet`` are not actually bound at runtime.
* a class that inherits from :class:`collections.abc.Sequence`
* a Python class that has been registered as :class:`collections.abc.Sequence`
- * a builtin class that has its (CPython) :data:`Py_TPFLAGS_SEQUENCE` bit set
+ * a builtin class that has its (CPython) :c:macro:`Py_TPFLAGS_SEQUENCE` bit set
* a class that inherits from any of the above
The following standard library classes are sequences:
@@ -1859,7 +1859,7 @@ like ``TYPE_PARAMS_OF_ListOrSet`` are not actually bound at runtime.
* a class that inherits from :class:`collections.abc.Mapping`
* a Python class that has been registered as :class:`collections.abc.Mapping`
- * a builtin class that has its (CPython) :data:`Py_TPFLAGS_MAPPING` bit set
+ * a builtin class that has its (CPython) :c:macro:`Py_TPFLAGS_MAPPING` bit set
* a class that inherits from any of the above
The standard library classes :class:`dict` and :class:`types.MappingProxyType`