We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ea8faf commit d1aad3fCopy full SHA for d1aad3f
Objects/typeobject.c
@@ -6314,12 +6314,12 @@ update_one_slot(PyTypeObject *type, slotdef *p)
6314
specific = (void *)slot_tp_new;
6315
}
6316
else {
6317
- PyTypeObject *staticbase = type->tp_base;
6318
specific = ((PyTypeObject *)self)->tp_new;
6319
/* Check that the user does not do anything
6320
silly and unsafe like object.__new__(dict).
6321
To do this, we check that the most derived
6322
base that's not a heap type is this type. */
+ PyTypeObject *staticbase = type->tp_base;
6323
while (staticbase &&
6324
(staticbase->tp_flags & Py_TPFLAGS_HEAPTYPE))
6325
staticbase = staticbase->tp_base;
0 commit comments