Lines Matching defs:obj
160 float_from_string_inner(const char *s, Py_ssize_t len, void *obj)
172 "%R", obj);
188 "%R", obj);
250 _PyFloat_ExactDealloc(PyObject *obj)
252 assert(PyFloat_CheckExact(obj));
253 PyFloatObject *op = (PyFloatObject *)obj;
347 /* Macro and helper that convert PyObject obj to a C double and store
348 the value in dbl. If conversion to double raises an exception, obj is
350 obj is not of float or int type, Py_NotImplemented is incref'ed,
351 stored in obj, and returned from the function invoking this macro.
353 #define CONVERT_TO_DOUBLE(obj, dbl) \
354 if (PyFloat_Check(obj)) \
355 dbl = PyFloat_AS_DOUBLE(obj); \
356 else if (convert_to_double(&(obj), &(dbl)) < 0) \
357 return obj;
364 PyObject *obj = *v;
366 if (PyLong_Check(obj)) {
367 *dbl = PyLong_AsDouble(obj);