8000 Use the same Sphinx role for Py_TPFLAGS_ITEMS_AT_END as for other typ… · python/cpython@2ba8084 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ba8084

Browse files
committed
Use the same Sphinx role for Py_TPFLAGS_ITEMS_AT_END as for other type flags
Now is not the time to fix that.
1 parent 291731b commit 2ba8084

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Doc/c-api/object.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,10 @@ Object Protocol
427427
.. c:function:: PyObject* PyObject_GetItemData(PyObject *o)
428428
429429
Get a pointer to per-item data for a class with
430-
:c:macro:`Py_TPFLAGS_ITEMS_AT_END`.
430+
:const:`Py_TPFLAGS_ITEMS_AT_END`.
431431
432432
On error, set an exception and return ``NULL``.
433433
:py:exc:`TypeError` is raised if *o* does not have
434-
:c:macro:`Py_TPFLAGS_ITEMS_AT_END` set.
434+
:const:`Py_TPFLAGS_ITEMS_AT_END` set.
435435
436436
.. versionadded:: 3.12

Doc/c-api/type.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ The following functions and structs are used to create
363363
- The requested :c:member:`PyType_Spec.basicsize` is zero,
364364
suggesting that the subclass does not access the instance's memory
365365
directly.
366-
- With the :c:macro:`Py_TPFLAGS_ITEMS_AT_END` flag.
366+
- With the :const:`Py_TPFLAGS_ITEMS_AT_END` flag.
367367
368368
.. c:member:: int flags
369369

Doc/c-api/typeobj.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ and :c:type:`PyType_Type` effectively act as defaults.)
11711171
:c:member:`~PyTypeObject.tp_weaklistoffset` field is set in a superclass.
11721172

11731173

1174-
.. c:macro:: Py_TPFLAGS_ITEMS_AT_END
1174+
.. data:: Py_TPFLAGS_ITEMS_AT_END
11751175

11761176
Only usable with variable-size types, i.e. ones with non-zero
11771177
:c:member:`~PyObject.tp_itemsize`.

Doc/whatsnew/3.12.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ New Features
10211021
inheriting or extending the base class size.
10221022
- :c:func:`PyObject_GetTypeData` and :c:func:`PyType_GetTypeDataSize`
10231023
added to allow access to subclass-specific instance data.
1024-
- :c:macro:`Py_TPFLAGS_ITEMS_AT_END` and :c:func:`PyObject_GetItemData`
1024+
- :const:`Py_TPFLAGS_ITEMS_AT_END` and :c:func:`PyObject_GetItemData`
10251025
added to allow safely extending certain variable-sized types, including
10261026
:c:var:`PyType_Type`.
10271027
- :c:macro:`Py_RELATIVE_OFFSET` added to allow defining

0 commit comments

Comments
 (0)
0