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 gvanrossum
Recipients aldwinaldwin, gvanrossum, lukasz.langa, miss-islington, ned.deily, nedbat, p-ganssle, pablogsal, serhiy.storchaka, terry.reedy, tim.peters, xtreak
Date 2019-07-08.16:54:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562604896.93.0.418500526864.issue37500@roundup.psfhosted.org>
In-reply-to
Content
Sure seems to me as if we need to have a separate pass that looks for out-of-place `return`, `yield`, `break` and `continue`, run before the optimization removes `if 0:` blocks etc.
History
Date User Action Args
2019-07-08 16:54:57gvanrossumsetrecipients: + gvanrossum, tim.peters, terry.reedy, nedbat, ned.deily, lukasz.langa, serhiy.storchaka, p-ganssle, pablogsal, miss-islington, xtreak, aldwinaldwin
2019-07-08 16:54:56gvanrossumsetmessageid: <1562604896.93.0.418500526864.issue37500@roundup.psfhosted.org>
2019-07-08 16:54:56gvanrossumlinkissue37500 messages
2019-07-08 16:54:56gvanrossumcreate