[Python-Dev] PEP 3152 and yield from Future() (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 24 10:21:03 CEST 2015


Victor Stinner wrote:

Oh, I missed something in the PEP 3152: a obj_cocall() method can_ be an iterator/generator, it can be something different than a cofunction.

In fact, it can't be cofunction. It's part of the machinery for implementing cofunctions.

It's not easy to understand the whole puzzle. IMO the PEP 492 better explains how pieces are put together ;-)

Yes, it's written in a rather minimal style, sorry about that.

-- Greg



More information about the Python-Dev mailing list