In article <[EMAIL PROTECTED]>, Andrea Griffini <[EMAIL PROTECTED]> wrote:
> Isn't the handling of StopIteration confined in the very moment of > calling .next() ? This was what I expected... and from a simple test > looks also what is happening... Not if someone farther back in the call chain is looking for StopIteration. Which could be the case if the call chain includes a for-loop that is calling the next() method of another generator. -- David Eppstein Computer Science Dept., Univ. of California, Irvine http://www.ics.uci.edu/~eppstein/ -- http://mail.python.org/mailman/listinfo/python-list