Lines Matching defs:obj
428 #define TO_COMPLEX(obj, c) \
429 if (PyComplex_Check(obj)) \
430 c = ((PyComplexObject *)(obj))->cval; \
431 else if (to_complex(&(obj), &(c)) < 0) \
432 return (obj)
437 PyObject *obj = *pobj;
440 if (PyLong_Check(obj)) {
441 pc->real = PyLong_AsDouble(obj);
448 if (PyFloat_Check(obj)) {
449 pc->real = PyFloat_AsDouble(obj);