On Mon, Aug 20, 2018 at 5:34 PM, Simon De Greve <degreve...@gmail.com> wrote: > Do you mean that for loops inside an "async def" statements are always > executed as 'async for' loops? That's what I wanted to acheive by writing > the AsyncDict class (c.f. the CodeReview link).
The point of an 'async for' loop is that grabbing the next value can block the async function - it's a yield point. If you don't need that, you can use a regular 'for' loop. ChrisA _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/