Home
last modified time | relevance | path

Searched refs:aiter (Results 1 – 6 of 6) sorted by relevance

/external/icu/icu4c/source/i18n/
Ddtptngen.cpp83 static void ures_a_open(UResourceBundleAIterator *aiter, UResourceBundle *bund, UErrorCode *status)… in ures_a_open() argument
87 aiter->bund = bund; in ures_a_open()
88 aiter->num = ures_getSize(aiter->bund); in ures_a_open()
89 aiter->cursor = 0; in ures_a_open()
91 aiter->entries = NULL; in ures_a_open()
93 aiter->entries = (UResAEntry*)uprv_malloc(sizeof(UResAEntry)*aiter->num); in ures_a_open()
94 for(int i=0;i<aiter->num;i++) { in ures_a_open()
95 aiter->entries[i].item = ures_getByIndex(aiter->bund, i, NULL, status); in ures_a_open()
96 const char *akey = ures_getKey(aiter->entries[i].item); in ures_a_open()
98 aiter->entries[i].key = (UChar*)uprv_malloc(len*sizeof(UChar)); in ures_a_open()
[all …]
/external/python/cpython3/Lib/test/
Dtest_coroutines.py1470 aiter = I()
1471 refs_before = sys.getrefcount(aiter)
1474 async for i in aiter:
1483 self.assertEqual(sys.getrefcount(aiter), refs_before)
1493 aiter = I()
1494 refs_before = sys.getrefcount(aiter)
1497 async for i in aiter:
1506 self.assertEqual(sys.getrefcount(aiter), refs_before)
/external/python/cpython3/Include/
Dgenobject.h59 PyObject *_PyAIterWrapper_New(PyObject *aiter);
/external/python/cpython3/Objects/
Dgenobject.c1225 _PyAIterWrapper_New(PyObject *aiter) in _PyAIterWrapper_New() argument
1232 Py_INCREF(aiter); in _PyAIterWrapper_New()
1233 aw->ags_aiter = aiter; in _PyAIterWrapper_New()
/external/python/cpython3/Python/
Dceval.c1942 PyObject *aiter = TOP(); in _PyEval_EvalFrameDefault() local
1943 PyTypeObject *type = Py_TYPE(aiter); in _PyEval_EvalFrameDefault()
1945 if (PyAsyncGen_CheckExact(aiter)) { in _PyEval_EvalFrameDefault()
1946 awaitable = type->tp_as_async->am_anext(aiter); in _PyEval_EvalFrameDefault()
1956 next_iter = (*getter)(aiter); in _PyEval_EvalFrameDefault()
/external/python/cpython3/Doc/whatsnew/
D3.6.rst313 result = [i async for i in aiter() if i % 2]