Are generators in nested functions possible?

David Eppstein eppstein at ics.uci.edu
Thu Jun 20 19:39:23 EDT 2002


In article <eppstein-9035CF.16382220062002 at news.service.uci.edu>,
 David Eppstein <eppstein at ics.uci.edu> wrote:

> This is a no-op.  Did you mean
>                       for x in genInd(res+[val],length-1): return x
> ?

Oops, that should be yield, not return, of course...

-- 
David Eppstein       UC Irvine Dept. of Information & Computer Science
eppstein at ics.uci.edu http://www.ics.uci.edu/~eppstein/



More information about the Python-list mailing list