29 Mar
2009
29 Mar
'09
12:47 a.m.
While attempting to update the PEP to incorporate a GeneratorReturn exception, I've thought of a potential difficulty in making the exception type depend on whether the return statement had a value. Currently the StopIteration exception is created after the return statement has unwound the stack frame, by which time we've lost track of whether it had an expression. -- Greg