Re: Make a generator from a recursive function

2005-12-09 Thread James Stroud
Alex Martelli wrote: > James Stroud <[EMAIL PROTECTED]> wrote: >... > >>This was my answer to the thread "new in programing": >> >>def do_something(*args): >> print args >> >>def do_deeply(first, depth, lim, doit=True, *args): >> if depth < lim: >> do_deeply(first+1, depth+1, lim, Fals

Re: Make a generator from a recursive function

2005-12-09 Thread Alex Martelli
James Stroud <[EMAIL PROTECTED]> wrote: ... > This was my answer to the thread "new in programing": > > def do_something(*args): >print args > > def do_deeply(first, depth, lim, doit=True, *args): >if depth < lim: > do_deeply(first+1, depth+1, lim, False, *args) >if first <= d