Searched refs:oldto (Results 1 – 2 of 2) sorted by relevance
3880 compatible_for_assignment(PyTypeObject* oldto, PyTypeObject* newto, const char* attr) in compatible_for_assignment() argument3884 if (newto->tp_free != oldto->tp_free) { in compatible_for_assignment()3890 oldto->tp_name); in compatible_for_assignment()3904 oldbase = oldto; in compatible_for_assignment()3917 oldto->tp_name); in compatible_for_assignment()3927 PyTypeObject *oldto = Py_TYPE(self); in object_set_class() local3992 PyType_IsSubtype(oldto, &PyModule_Type)) && in object_set_class()3994 !(oldto->tp_flags & Py_TPFLAGS_HEAPTYPE))) { in object_set_class()4001 if (compatible_for_assignment(oldto, newto, "__class__")) { in object_set_class()4005 if (oldto->tp_flags & Py_TPFLAGS_HEAPTYPE) in object_set_class()[all …]
3172 compatible_for_assignment(PyTypeObject* oldto, PyTypeObject* newto, char* attr) in compatible_for_assignment() argument3176 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() local3227 !(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()