Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dtypeobject.c4071 compatible_for_assignment(PyTypeObject* oldto, PyTypeObject* newto, const char* attr) in compatible_for_assignment() argument
4075 if (newto->tp_free != oldto->tp_free) { in compatible_for_assignment()
4081 oldto->tp_name); in compatible_for_assignment()
4095 oldbase = oldto; in compatible_for_assignment()
4108 oldto->tp_name); in compatible_for_assignment()
4118 PyTypeObject *oldto = Py_TYPE(self); in object_set_class() local
4188 PyType_IsSubtype(oldto, &PyModule_Type)) && in object_set_class()
4190 !(oldto->tp_flags & Py_TPFLAGS_HEAPTYPE))) { in object_set_class()
4197 if (compatible_for_assignment(oldto, newto, "__class__")) { in object_set_class()
4202 if (oldto->tp_flags & Py_TPFLAGS_HEAPTYPE) in object_set_class()
[all …]
/external/python/cpython2/Objects/
Dtypeobject.c3172 compatible_for_assignment(PyTypeObject* oldto, PyTypeObject* newto, char* attr) in compatible_for_assignment() argument
3176 if (newto->tp_dealloc != oldto->tp_dealloc || in compatible_for_assignment()
3177 newto->tp_free != oldto->tp_free) in compatible_for_assignment()
3184 oldto->tp_name); in compatible_for_assignment()
3188 oldbase = oldto; in compatible_for_assignment()
3201 oldto->tp_name); in compatible_for_assignment()
3211 PyTypeObject *oldto = Py_TYPE(self); in object_set_class() local
3227 !(oldto->tp_flags & Py_TPFLAGS_HEAPTYPE)) in object_set_class()
3233 if (compatible_for_assignment(newto, oldto, "__class__")) { in object_set_class()
3236 Py_DECREF(oldto); in object_set_class()