[Python-Dev] PEP 492: async/await in Python; version 4

Stefan Behnel stefan_ml at behnel.de
Sat May 2 06:54:32 CEST 2015

Yury Selivanov schrieb am 01.05.2015 um 20:52:
> I don't like the idea of combining __next__ and __anext__.

Ok, fair enough. So, how would you use this new protocol manually then?
Say, I already know that I won't need to await the next item that the
iterator will return. For normal iterators, I could just call next() on it
and continue the for-loop. How would I do it for AIterators?


More information about the Python-Dev mailing list