30 Oct
2010
30 Oct
'10
1:16 a.m.
Guido van Rossum wrote:
On Fri, Oct 29, 2010 at 8:09 PM, Greg Ewing
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) -- Greg