Lines Matching refs:iter
2455 PyObject *iter = NULL;
2464 iter = (*getter)(obj);
2466 if (iter == NULL) {
2481 if (Py_TYPE(iter)->tp_as_async == NULL ||
2482 Py_TYPE(iter)->tp_as_async->am_anext == NULL) {
2488 Py_TYPE(iter)->tp_name);
2489 Py_DECREF(iter);
2493 SET_TOP(iter);
2551 PyObject *iter = _PyCoro_GetAwaitableIter(iterable);
2553 if (iter == NULL) {
2559 if (iter != NULL && PyCoro_CheckExact(iter)) {
2560 PyObject *yf = _PyGen_yf((PyGenObject*)iter);
2562 /* `iter` is a coroutine object that is being
2566 Py_CLEAR(iter);
2569 /* The code below jumps to `error` if `iter` is NULL. */
2573 SET_TOP(iter); /* Even if it's NULL */
2575 if (iter == NULL) {
4294 PyObject *iter = PyObject_GetIter(iterable);
4296 SET_TOP(iter);
4297 if (iter == NULL)
4306 PyObject *iter;
4322 iter = PyObject_GetIter(iterable);
4324 SET_TOP(iter);
4325 if (iter == NULL)
4334 /* before: [iter]; after: [iter, iter()] *or* [] */
4335 PyObject *iter = TOP();
4339 _py_stats.opcode_stats[FOR_ITER].specialization.failure_kinds[_PySpecialization_ClassifyIterator(iter)]++;
4341 PyObject *next = (*Py_TYPE(iter)->tp_iternext)(iter);
4359 Py_DECREF(iter);
6692 PyObject *it; /* iter(v) */