[Python-ideas] Revised^4 PEP on yield-from
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Feb 19 21:58:46 CET 2009
Greg Falcon wrote:
> It seems to me equivalence here might not be what you want.
>
> This parallel does not exist today between "return" and "raise
> StopIteration()", where the former can't be intercepted and blocked by
> a try/except block, but the latter can.
Hmmm, you're right, it's not exactly equivalent.
I'll adjust the wording of that part -- it's not
my intention to make returns catchable.
--
Greg
More information about the Python-ideas
mailing list