[Python-ideas] PEP 380 alternative: A yielding function

Greg Ewing greg.ewing at canterbury.ac.nz
Thu Jul 29 02:48:39 CEST 2010


Anders J. Munch wrote:

> Right, yield_if_true is a regular function, that's the whole point.

What if it needs to call yield_() more than once? If it's
just a regular function, then it has no ability to be
suspended at the point of yield and resumed.

-- 
Greg



More information about the Python-ideas mailing list