[Python-Dev] async/await in Python; v2

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Apr 23 09:03:32 CEST 2015


Yury Selivanov wrote:
> - If it's an object with __await__, return iter(object.__await__())

Is the iter() really needed? Couldn't the contract of
__await__ be that it always returns an iterator?

-- 
Greg


More information about the Python-Dev mailing list