2 Apr
2009
2 Apr
'09
7:45 p.m.
Jacob Holm wrote:
There has been requests for a function that loops over the generator and returns the final result, but this version of close doesn't fit that use case
That has nothing to do with closing behaviour. Such a function wouldn't close() the subgenerator, it would just keep calling next() until it finishes naturally and catch the GeneratorReturn. -- Greg