Lines Matching refs:coerced
1458 PyObject *coerced = NULL; in half_binop() local
1485 coerced = PyEval_CallObject(coercefunc, args); in half_binop()
1488 if (coerced == NULL) { in half_binop()
1491 if (coerced == Py_None || coerced == Py_NotImplemented) { in half_binop()
1492 Py_DECREF(coerced); in half_binop()
1495 if (!PyTuple_Check(coerced) || PyTuple_Size(coerced) != 2) { in half_binop()
1496 Py_DECREF(coerced); in half_binop()
1501 v1 = PyTuple_GetItem(coerced, 0); in half_binop()
1502 w = PyTuple_GetItem(coerced, 1); in half_binop()
1516 Py_DECREF(coerced); in half_binop()
1552 PyObject *coerced; in instance_coerce() local
1572 coerced = PyEval_CallObject(coercefunc, args); in instance_coerce()
1575 if (coerced == NULL) { in instance_coerce()
1579 if (coerced == Py_None || coerced == Py_NotImplemented) { in instance_coerce()
1581 Py_DECREF(coerced); in instance_coerce()
1584 if (!PyTuple_Check(coerced) || PyTuple_Size(coerced) != 2) { in instance_coerce()
1586 Py_DECREF(coerced); in instance_coerce()
1592 *pv = PyTuple_GetItem(coerced, 0); in instance_coerce()
1593 *pw = PyTuple_GetItem(coerced, 1); in instance_coerce()
1596 Py_DECREF(coerced); in instance_coerce()