@@ -163,9 +163,9 @@ Quick Reference
163
163
164
164
.. [#cols ] Columns:
165
165
166
- **"O" **: set on :c:type : `PyBaseObject_Type `
166
+ **"O" **: set on :c:data : `PyBaseObject_Type `
167
167
168
- **"T" **: set on :c:type : `PyType_Type `
168
+ **"T" **: set on :c:data : `PyType_Type `
169
169
170
170
**"D" **: default (if slot is set to ``NULL ``)
171
171
@@ -569,8 +569,8 @@ PyTypeObject Slots
569
569
570
570
Each slot has a section describing inheritance. If :c:func: `PyType_Ready `
571
571
may set a value when the field is set to ``NULL `` then there will also be
572
- a "Default" section. (Note that many fields set on :c:type : `PyBaseObject_Type `
573
- and :c:type : `PyType_Type ` effectively act as defaults.)
572
+ a "Default" section. (Note that many fields set on :c:data : `PyBaseObject_Type `
573
+ and :c:data : `PyType_Type ` effectively act as defaults.)
574
574
575
575
.. c :member :: const char * PyTypeObject.tp_name
576
576
@@ -964,7 +964,7 @@ and :c:type:`PyType_Type` effectively act as defaults.)
964
964
965
965
**Default: **
966
966
967
- :c:type : `PyBaseObject_Type ` uses :c:func: `PyObject_GenericGetAttr `.
967
+ :c:data : `PyBaseObject_Type ` uses :c:func: `PyObject_GenericGetAttr `.
968
968
969
969
970
970
.. c :member :: setattrofunc PyTypeObject.tp_setattro
@@ -990,7 +990,7 @@ and :c:type:`PyType_Type` effectively act as defaults.)
990
990
991
991
**Default: **
992
992
993
- :c:type : `PyBaseObject_Type ` uses :c:func: `PyObject_GenericSetAttr `.
993
+ :c:data : `PyBaseObject_Type ` uses :c:func: `PyObject_GenericSetAttr `.
994
994
995
995
996
996
.. c :member :: PyBufferProcs* PyTypeObject.tp_as_buffer
@@ -1031,7 +1031,7 @@ and :c:type:`PyType_Type` effectively act as defaults.)
1031
1031
1032
1032
**Default: **
1033
1033
1034
- :c:type : `PyBaseObject_Type ` uses
1034
+ :c:data : `PyBaseObject_Type ` uses
1035
1035
``Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE ``.
1036
1036
1037
1037
**Bit Masks: **
@@ -1556,7 +1556,7 @@ and :c:type:`PyType_Type` effectively act as defaults.)
1556
1556
1557
1557
**Default: **
1558
1558
1559
- :c:type : `PyBaseObject_Type ` provides a :attr: `tp_richcompare `
1559
+ :c:data : `PyBaseObject_Type ` provides a :attr: `tp_richcompare `
1560
1560
implementation, which may be inherited. However, if only
1561
1561
:attr: `tp_hash ` is defined, not even the inherited function is used
1562
1562
and instances of the type will not be able to participate in any
@@ -1878,7 +1878,7 @@ and :c:type:`PyType_Type` effectively act as defaults.)
1878
1878
:c:func: `PyType_GenericAlloc `, to force a standard heap
1879
1879
allocation strategy.
1880
1880
1881
- For static subtypes, :c:type : `PyBaseObject_Type ` uses
1881
+ For static subtypes, :c:data : `PyBaseObject_Type ` uses
1882
1882
:c:func: `PyType_GenericAlloc `. That is the recommended value
1883
1883
for all statically defined types.
1884
1884
@@ -1941,7 +1941,7 @@ and :c:type:`PyType_Type` effectively act as defaults.)
1941
1941
match :c:func: `PyType_GenericAlloc ` and the value of the
1942
1942
:c:macro: `Py_TPFLAGS_HAVE_GC ` flag bit.
1943
1943
1944
- For static subtypes, :c:type : `PyBaseObject_Type ` uses PyObject_Del.
1944
+ For static subtypes, :c:data : `PyBaseObject_Type ` uses :c:func: ` PyObject_Del ` .
1945
1945
1946
1946
1947
1947
.. c :member :: inquiry PyTypeObject.tp_is_gc
0 commit comments