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 tim.peters
Recipients aldwinaldwin, lukasz.langa, miss-islington, ned.deily, nedbat, p-ganssle, pablogsal, serhiy.storchaka, terry.reedy, tim.peters, xtreak
Date 2019-07-05.22:37:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562366239.27.0.861460686304.issue37500@roundup.psfhosted.org>
In-reply-to
Content
> This is the expected result of fixing a bug that has been
> open since 2008

It's the expected result of fixing a bug _by_ eliminating the optimization entirely.  It's not an expected result of merely fixing the bug.  It's quite obviously _possible_ to note that

if 0:
    return

is forbidden at module level, yet not emit any bytecode for it.  Indeed, it's so obvious that everyone here did it in their head without even noticing they had done so ;-)
History
Date User Action Args
2019-07-05 22:37:19tim.peterssetrecipients: + tim.peters, terry.reedy, nedbat, ned.deily, lukasz.langa, serhiy.storchaka, p-ganssle, pablogsal, miss-islington, xtreak, aldwinaldwin
2019-07-05 22:37:19tim.peterssetmessageid: <1562366239.27.0.861460686304.issue37500@roundup.psfhosted.org>
2019-07-05 22:37:19tim.peterslinkissue37500 messages
2019-07-05 22:37:19tim.peterscreate