Searched refs:cmp_func (Results 1 – 2 of 2) sorted by relevance
1650 PyObject *cmp_func; in half_cmp() local1662 cmp_func = PyObject_GetAttr(v, cmp_obj); in half_cmp()1663 if (cmp_func == NULL) { in half_cmp()1672 Py_DECREF(cmp_func); in half_cmp()1676 result = PyEval_CallObject(cmp_func, args); in half_cmp()1678 Py_DECREF(cmp_func); in half_cmp()
1674 PyObject *cmp_func; in half_cmp() local1686 cmp_func = PyObject_GetAttr(v, cmp_obj); in half_cmp()1687 if (cmp_func == NULL) { in half_cmp()1696 Py_DECREF(cmp_func); in half_cmp()1700 result = PyEval_CallObject(cmp_func, args); in half_cmp()1702 Py_DECREF(cmp_func); in half_cmp()