File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ Quick Reference
135
135
+------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
136
136
| [:c:member: `~PyTypeObject.tp_cache `] | :c:type: `PyObject ` * | | | | |
137
137
+------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
138
- | [:c:member: `~PyTypeObject.tp_subclasses `] | :c:type: ` PyObject ` * | __subclasses__ | | | |
138
+ | [:c:member: `~PyTypeObject.tp_subclasses `] | void * | __subclasses__ | | | |
139
139
+------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
140
140
| [:c:member: `~PyTypeObject.tp_weaklist `] | :c:type: `PyObject ` * | | | | |
141
141
+------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
@@ -1936,8 +1936,8 @@ and :c:type:`PyType_Type` effectively act as defaults.)
1936
1936
1937
1937
Internals detail: For the static builtin types this field no longer
1938
1938
holds the subclasses. Those are now stored on ``PyInterpreterState ``.
1939
- This field is re-purposed to hold the index into the type's storage
1940
- on each interpreter state.
1939
+ For static builtin types, this field is re-purposed to hold the index
1940
+ into the type's storage on each interpreter state.
1941
1941
1942
1942
**Inheritance: **
1943
1943
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ struct _typeobject {
218
218
PyObject * tp_bases ;
219
219
PyObject * tp_mro ; /* method resolution order */
220
220
PyObject * tp_cache ; /* no longer used */
221
- PyObject * tp_subclasses ; /* for static builtin types this is an index */
221
+ void * tp_subclasses ; /* for static builtin types this is an index */
222
222
PyObject * tp_weaklist ;
223
223
destructor tp_del ;
224
224
Original file line number Diff line number Diff line change @@ -4427,7 +4427,7 @@ lookup_subclasses(PyTypeObject *self)
4427
4427
assert (state != NULL );
4428
4428
return state -> tp_subclasses ;
4429
4429
}
4430
- return self -> tp_subclasses ;
4430
+ return ( PyObject * ) self -> tp_subclasses ;
4431
4431
}
4432
4432
4433
4433
int
@@ -6844,7 +6844,7 @@ init_subclasses(PyTypeObject *self)
6844
6844
state -> tp_subclasses = subclasses ;
6845
6845
return subclasses ;
6846
6846
}
6847
- self -> tp_subclasses = subclasses ;
6847
+ self -> tp_subclasses = ( void * ) subclasses ;
6848
6848
return subclasses ;
6849
6849
}
6850
6850
You can’t perform that action at this time.
0 commit comments