Skip to content

Commit cb125a9

Browse files
committed
Merge remote-tracking branch 'origin/tim/numpy-building' into tim/numpy-building
2 parents fc2abf4 + 150782e commit cb125a9

File tree

1 file changed

+10
-9
lines changed
  • graalpython/com.oracle.graal.python.cext/src

1 file changed

+10
-9
lines changed

graalpython/com.oracle.graal.python.cext/src/object.c

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -407,17 +407,18 @@ int PyType_Ready(PyTypeObject* cls) {
407407
// TODO ...
408408
}
409409

410+
// TODO link subclasses
410411
/* Link into each base class's list of subclasses */
411412
bases = cls->tp_bases;
412-
Py_ssize_t n = PyTuple_GET_SIZE(bases);
413-
Py_ssize_t i;
414-
for (i = 0; i < n; i++) {
415-
PyTypeObject *b = polyglot_as__typeobject(PyTuple_GET_ITEM(bases, i));
416-
if (PyType_Check(b) && add_subclass((PyTypeObject *)b, cls) < 0) {
417-
cls->tp_flags &= ~Py_TPFLAGS_READYING;
418-
return -1;
419-
}
420-
}
413+
// Py_ssize_t n = PyTuple_GET_SIZE(bases);
414+
// Py_ssize_t i;
415+
// for (i = 0; i < n; i++) {
416+
// PyTypeObject *b = polyglot_as__typeobject(PyTuple_GetItem(bases, i));
417+
// if (PyType_Check(b) && add_subclass((PyTypeObject *)b, cls) < 0) {
418+
// cls->tp_flags &= ~Py_TPFLAGS_READYING;
419+
// return -1;
420+
// }
421+
// }
421422

422423
// done
423424
cls->tp_flags = cls->tp_flags & ~Py_TPFLAGS_READYING;

0 commit comments

Comments
 (0)