Lines Matching refs:yf
314 gen_close_iter(PyObject *yf) in gen_close_iter() argument
319 if (PyGen_CheckExact(yf) || PyCoro_CheckExact(yf)) { in gen_close_iter()
320 retval = gen_close((PyGenObject *)yf, NULL); in gen_close_iter()
326 if (_PyObject_LookupAttrId(yf, &PyId_close, &meth) < 0) { in gen_close_iter()
327 PyErr_WriteUnraisable(yf); in gen_close_iter()
343 PyObject *yf = NULL; in _PyGen_yf() local
361 yf = f->f_valuestack[f->f_stackdepth-1]; in _PyGen_yf()
362 Py_INCREF(yf); in _PyGen_yf()
365 return yf; in _PyGen_yf()
372 PyObject *yf = _PyGen_yf(gen); in gen_close() local
375 if (yf) { in gen_close()
378 err = gen_close_iter(yf); in gen_close()
380 Py_DECREF(yf); in gen_close()
413 PyObject *yf = _PyGen_yf(gen); in _gen_throw() local
416 if (yf) { in _gen_throw()
428 err = gen_close_iter(yf); in _gen_throw()
430 Py_DECREF(yf); in _gen_throw()
435 if (PyGen_CheckExact(yf) || PyCoro_CheckExact(yf)) { in _gen_throw()
450 ret = _gen_throw((PyGenObject *)yf, close_on_genexit, in _gen_throw()
457 if (_PyObject_LookupAttrId(yf, &PyId_throw, &meth) < 0) { in _gen_throw()
458 Py_DECREF(yf); in _gen_throw()
462 Py_DECREF(yf); in _gen_throw()
471 Py_DECREF(yf); in _gen_throw()
478 assert(ret == yf); in _gen_throw()
729 PyObject *yf = _PyGen_yf(gen); in gen_getyieldfrom() local
730 if (yf == NULL) in gen_getyieldfrom()
732 return yf; in gen_getyieldfrom()
966 PyObject *yf = _PyGen_yf((PyGenObject *) coro); in coro_get_cr_await() local
967 if (yf == NULL) in coro_get_cr_await()
969 return yf; in coro_get_cr_await()