[Python-Dev] Re: anonymous blocks
Steven Bethard
steven.bethard at gmail.com
Thu Apr 28 06:37:36 CEST 2005
Neil Schemenauer wrote:
> For generators, calling __error__ with a StopIteration instance
> would execute any 'finally' block. Any other argument to __error__
> would get re-raised by the generator instance.
This is only one case right? Any exception (including StopIteration)
passed to a generator's __error__ method will just be re-raised at the
point of the last yield, right? Or is there a need to special-case
StopIteration?
STeVe
--
You can wordify anything if you just verb it.
--- Bucky Katt, Get Fuzzy
More information about the Python-Dev
mailing list