Lines Matching refs:result

156     PyObject *result;
204 result = arg ? arg : Py_None;
205 Py_INCREF(result);
206 _PyFrame_StackPush(frame, result);
219 result = _PyEval_EvalFrame(tstate, frame, exc);
234 if (result) {
236 *presult = result;
239 assert(result == Py_None || !PyAsyncGen_CheckExact(gen));
240 if (result == Py_None && !PyAsyncGen_CheckExact(gen) && !arg) {
242 Py_CLEAR(result);
273 *presult = result;
274 return result ? PYGEN_RETURN : PYGEN_ERROR;
278 PyGen_am_send(PyGenObject *gen, PyObject *arg, PyObject **result)
280 return gen_send_ex2(gen, arg, result, 0, 0);
286 PyObject *result;
287 if (gen_send_ex2(gen, arg, &result, exc, closing) == PYGEN_RETURN) {
289 assert(result == Py_None);
292 else if (result == Py_None) {
296 _PyGen_SetStopIterationValue(result);
298 Py_CLEAR(result);
300 return result;
592 PyObject *result;
594 if (gen_send_ex2(gen, NULL, &result, 0, 0) == PYGEN_RETURN) {
595 if (result != Py_None) {
596 _PyGen_SetStopIterationValue(result);
598 Py_CLEAR(result);
600 return result;
1692 async_gen_unwrap_value(PyAsyncGenObject *gen, PyObject *result)
1694 if (result == NULL) {
1709 if (_PyAsyncGenWrappedValue_CheckExact(result)) {
1711 _PyGen_SetStopIterationValue(((_PyAsyncGenWrappedValue*)result)->agw_val);
1712 Py_DECREF(result);
1717 return result;
1759 PyObject *result;
1783 result = gen_send((PyGenObject*)o->ags_gen, arg);
1784 result = async_gen_unwrap_value(o->ags_gen, result);
1786 if (result == NULL) {
1790 return result;
1804 PyObject *result;
1813 result = gen_throw((PyGenObject*)o->ags_gen, args, nargs);
1814 result = async_gen_unwrap_value(o->ags_gen, result);
1816 if (result == NULL) {
1820 return result;