Author Mark.Shannon
Recipients Mark.Shannon, nedbat, pablogsal, zhtw1234
Date 2020-12-14.13:02:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1607950934.71.0.135313701528.issue42246@roundup.psfhosted.org>
In-reply-to
Content
Thanks Ned, that's really helpful. I'll go through those points:

Code after break/continue is no longer compiled.
    Expected

First line number of modules
    Expected

Except clause when no exception
    https://bugs.python.org/issue42634

Double loops (this also covers End-of-loop jumps, I think)
    https://bugs.python.org/issue42635

I want to merge https://github.com/python/cpython/pull/23743 before I fix any of the others, but here is a summary of what I think are the root causes.

if-break
    Exit block duplication does not preserve line number of jump to final block

Finally handling
    Combination of two things. Not preserving line numbers when performing jump-to-jump elimination and not marking try cleanup code as artificial.
History
Date User Action Args
2020-12-14 13:02:14Mark.Shannonsetrecipients: + Mark.Shannon, nedbat, pablogsal, zhtw1234
2020-12-14 13:02:14Mark.Shannonsetmessageid: <1607950934.71.0.135313701528.issue42246@roundup.psfhosted.org>
2020-12-14 13:02:14Mark.Shannonlinkissue42246 messages
2020-12-14 13:02:14Mark.Shannoncreate