File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 `.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments