Michael Sparks <[EMAIL PROTECTED]> wrote: > Duncan Booth wrote: > >> Unfortunately generators only save a single level of stack-frame, so >> they are not really a replacement for fibers/coroutines. The OP >> should perhaps look at Stackless Python or Greenlets. See > > On the surface of things, the single level aspect *LOOKS* like a > problem, but in fact is actually really useful. The reason is because > it encourages a generator to be relatively simple and focused > encouraging reuse. >
Ah, perhaps Python should similarly limit function call nesting to one level so as to keep things simple and encourage reuse. -- http://mail.python.org/mailman/listinfo/python-list