Home
last modified time | relevance | path

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

/external/icu/icu4c/source/i18n/
Ddtptngen.cpp84 static void ures_a_open(UResourceBundleAIterator *aiter, UResourceBundle *bund, UErrorCode *status)… in ures_a_open() argument
88 aiter->bund = bund; in ures_a_open()
89 aiter->num = ures_getSize(aiter->bund); in ures_a_open()
90 aiter->cursor = 0; in ures_a_open()
92 aiter->entries = nullptr; in ures_a_open()
94 aiter->entries = (UResAEntry*)uprv_malloc(sizeof(UResAEntry)*aiter->num); in ures_a_open()
95 for(int i=0;i<aiter->num;i++) { in ures_a_open()
96 aiter->entries[i].item = ures_getByIndex(aiter->bund, i, nullptr, status); in ures_a_open()
97 const char *akey = ures_getKey(aiter->entries[i].item); in ures_a_open()
99 aiter->entries[i].key = (UChar*)uprv_malloc(len*sizeof(UChar)); in ures_a_open()
[all …]
/external/python/cpython3/Lib/test/
Dtest_coroutines.py1568 aiter = I()
1569 refs_before = sys.getrefcount(aiter)
1572 async for i in aiter:
1581 self.assertEqual(sys.getrefcount(aiter), refs_before)
1591 aiter = I()
1592 refs_before = sys.getrefcount(aiter)
1595 async for i in aiter:
1604 self.assertEqual(sys.getrefcount(aiter), refs_before)
/external/python/cpython3/Python/
Dceval.c1697 PyObject *aiter = TOP(); in _PyEval_EvalFrameDefault() local
1698 PyTypeObject *type = Py_TYPE(aiter); in _PyEval_EvalFrameDefault()
1700 if (PyAsyncGen_CheckExact(aiter)) { in _PyEval_EvalFrameDefault()
1701 awaitable = type->tp_as_async->am_anext(aiter); in _PyEval_EvalFrameDefault()
1711 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]