Searched refs:int_name (Results 1 – 4 of 4) sorted by relevance
1839 static PyObject *int_name; in instance_int() local1840 if (int_name == NULL) { in instance_int()1841 int_name = PyString_InternFromString("__int__"); in instance_int()1842 if (int_name == NULL) in instance_int()1845 if (PyObject_HasAttr((PyObject*)self, int_name)) in instance_int()1846 return generic_unary_op(self, int_name); in instance_int()
1570 static PyObject *int_name = NULL; local1571 if (int_name == NULL) {1572 int_name = PyString_InternFromString("__int__");1573 if (int_name == NULL)1581 PyObject *int_func = PyObject_GetAttr(integral, int_name);
1863 static PyObject *int_name; in instance_int() local1864 if (int_name == NULL) { in instance_int()1865 int_name = PyString_InternFromString("__int__"); in instance_int()1866 if (int_name == NULL) in instance_int()1869 if (PyObject_HasAttr((PyObject*)self, int_name)) in instance_int()1870 return generic_unary_op(self, int_name); in instance_int()