Message81023
You should remove the error logic compile.c for "return" and "yield" in
function calls.
The problem with this approach is that every SyntaxError generated
during bytecode compilation must be moved to earlier. For example, I can
still use "break" and "continue" outside loops with your patch. The only
way I can think of around this is to compile the block anyway and remove
the extra code later. Maybe this optimization could be moved to the peep
holer? |
|
Date |
User |
Action |
Args |
2009-02-03 01:56:07 | benjamin.peterson | set | recipients:
+ benjamin.peterson, arigo, amaury.forgeotdarc, mark.dickinson, fijal, Carl.Friedrich.Bolz |
2009-02-03 01:56:06 | benjamin.peterson | set | messageid: <1233626166.55.0.417082385063.issue1875@psf.upfronthosting.co.za> |
2009-02-03 01:56:05 | benjamin.peterson | link | issue1875 messages |
2009-02-03 01:56:04 | benjamin.peterson | create | |
|