[Python-Dev] async/await in Python; v2
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Apr 24 10:39:28 CEST 2015
Stephen J. Turnbull wrote:
> Yury Selivanov writes:
>
> > I also read "for async item in iter:" as "I'm iterating iter
> > with async item".
>
> I thought that was precisely the intended semantics: item is available
> asynchronously.
The async-at-the-end idea could be used here as well.
for item in iter async:
...
with something as x async:
...
--
Greg
More information about the Python-Dev
mailing list