Home
last modified time | relevance | path

Searched refs:old_mro (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Objects/
Dtypeobject.c602 PyObject *new_mro, *old_mro; in mro_hierarchy() local
607 res = mro_internal(type, &old_mro); in mro_hierarchy()
613 if (old_mro != NULL) in mro_hierarchy()
614 tuple = PyTuple_Pack(3, type, new_mro, old_mro); in mro_hierarchy()
625 type->tp_mro = old_mro; in mro_hierarchy()
629 Py_XDECREF(old_mro); in mro_hierarchy()
758 PyObject *new_mro, *old_mro = NULL; in type_set_bases() local
761 "", 2, 3, &cls, &new_mro, &old_mro); in type_set_bases()
764 Py_XINCREF(old_mro); in type_set_bases()
765 cls->tp_mro = old_mro; in type_set_bases()
[all …]
/external/python/cpython2/Objects/
Dtypeobject.c403 PyObject *ref, *subclasses, *old_mro; in mro_subclasses() local
419 old_mro = subclass->tp_mro; in mro_subclasses()
421 subclass->tp_mro = old_mro; in mro_subclasses()
426 tuple = PyTuple_Pack(2, subclass, old_mro); in mro_subclasses()
427 Py_DECREF(old_mro); in mro_subclasses()
447 PyObject *old_bases, *old_mro; in type_set_bases() local
503 old_mro = type->tp_mro; in type_set_bases()
563 Py_DECREF(old_mro); in type_set_bases()
570 if (type->tp_mro != old_mro) { in type_set_bases()
576 type->tp_mro = old_mro; in type_set_bases()