This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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.004041
Marked as misclassified No
Message-id <>
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
Date User Action Args
2009-02-03 01:56:07benjamin.petersonsetrecipients: + benjamin.peterson, arigo, amaury.forgeotdarc, mark.dickinson, fijal, Carl.Friedrich.Bolz
2009-02-03 01:56:06benjamin.petersonsetmessageid: <>
2009-02-03 01:56:05benjamin.petersonlinkissue1875 messages
2009-02-03 01:56:04benjamin.petersoncreate