Searched refs:class_attr (Results 1 – 3 of 3) sorted by relevance
72 PyObject* class_attr = NULL; in pysqlite_connection_init() local120 class_attr = PyObject_GetAttrString(database, "__class__"); in pysqlite_connection_init()121 if (class_attr) { in pysqlite_connection_init()122 class_attr_str = PyObject_Str(class_attr); in pysqlite_connection_init()138 Py_XDECREF(class_attr); in pysqlite_connection_init()
6556 PyObject *class_attr; local6564 class_attr = PyObject_GetAttr(obj, class_str);6566 if (class_attr != NULL &&6567 PyType_Check(class_attr) &&6568 (PyTypeObject *)class_attr != Py_TYPE(obj))6571 (PyTypeObject *)class_attr, type);6573 return (PyTypeObject *)class_attr;6576 if (class_attr == NULL)6579 Py_DECREF(class_attr);
6592 PyObject *class_attr; local6600 class_attr = PyObject_GetAttr(obj, class_str);6602 if (class_attr != NULL &&6603 PyType_Check(class_attr) &&6604 (PyTypeObject *)class_attr != Py_TYPE(obj))6607 (PyTypeObject *)class_attr, type);6609 return (PyTypeObject *)class_attr;6612 if (class_attr == NULL)6615 Py_DECREF(class_attr);