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

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Apr 23 11:25:02 CEST 2015


Yury Selivanov wrote:
> I think that the problem of forgetting 'yield from' is a bit 
> exaggerated. Yes, I myself forgot 'yield from' once or twice. But that's 
> it, it has never happened since.

I think it's more likely to happen when you start with
an ordinary function, then discover that it needs to
be suspendable, so you need to track down all the
places that call it, and all the places that call
those, etc. PEP 3152 ensures that you get clear
diagnostics if you miss any.

-- 
Greg


More information about the Python-Dev mailing list