generators and exceptions

Terry Reedy tjreedy at udel.edu
Sat Mar 15 20:43:34 EST 2003


"Clark C. Evans" <cce at clarkevans.com> wrote in message
news:mailman.1047762804.8177.python-list at python.org...
> Hello, I'm playing with 2.2 generators, and it seems
> that they don't like exceptions...

>            val =- 1

You meant val -= 1.  But you still get termination before you
expected.

TJR






More information about the Python-list mailing list