Guido van Rossum wrote:
On Fri, Oct 29, 2010 at 8:09 PM, Greg Ewing greg.ewing@canterbury.ac.nz wrote:
and even then you would lose the return value from the inner generator, which you're probably going to want.
Really? Can you show a realistic use case?
Here's an attempt:
def variancer(): # Compute variance of values sent in (details left # as an exercise)
def stddever(): # Compute standard deviation of values sent in v = yield from variancer() return sqrt(v)