File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -427,10 +427,10 @@ Object Protocol
427
427
.. c:function:: PyObject* PyObject_GetItemData(PyObject *o)
428
428
429
429
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 `.
431
431
432
432
On error, set an exception and return ``NULL ``.
433
433
: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.
435
435
436
436
.. 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
363
363
- The requested :c:member:`PyType_Spec.basicsize` is zero,
364
364
suggesting that the subclass does not access the instance's memory
365
365
directly.
366
- - With the :c:macro :`Py_TPFLAGS_ITEMS_AT_END` flag.
366
+ - With the :const :`Py_TPFLAGS_ITEMS_AT_END` flag.
367
367
368
368
.. c:member:: int flags
369
369
Original file line number Diff line number Diff line change @@ -1171,7 +1171,7 @@ and :c:type:`PyType_Type` effectively act as defaults.)
1171
1171
:c:member: `~PyTypeObject.tp_weaklistoffset ` field is set in a superclass.
1172
1172
1173
1173
1174
- .. c : macro :: Py_TPFLAGS_ITEMS_AT_END
1174
+ .. data :: Py_TPFLAGS_ITEMS_AT_END
1175
1175
1176
1176
Only usable with variable-size types, i.e. ones with non-zero
1177
1177
:c:member: `~PyObject.tp_itemsize `.
Original file line number Diff line number Diff line change @@ -1021,7 +1021,7 @@ New Features
1021
1021
inheriting or extending the base class size.
1022
1022
- :c:func: `PyObject_GetTypeData ` and :c:func: `PyType_GetTypeDataSize `
1023
1023
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 `
1025
1025
added to allow safely extending certain variable-sized types, including
1026
1026
:c:var: `PyType_Type `.
1027
1027
- :c:macro: `Py_RELATIVE_OFFSET ` added to allow defining
You can’t perform that action at this time.
0 commit comments