Message 81023 - Python tracker (original) (raw)

Message81023

Author benjamin.peterson
Recipients Carl.Friedrich.Bolz, amaury.forgeotdarc, arigo, benjamin.peterson, fijal, mark.dickinson
Date 2009-02-03.01:56:04
SpamBayes Score 0.004040998
Marked as misclassified No
Message-id 1233626166.55.0.417082385063.issue1875@psf.upfronthosting.co.za
In-reply-to
Content
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?
History
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