mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
gh-106919: Use role :c:macro: for referencing the C "constants" (GH-106920)
This commit is contained in:
parent
81861fd90b
commit
fcc816dbff
47 changed files with 311 additions and 293 deletions
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue