Message382985
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. |
|
Date |
User |
Action |
Args |
2020-12-14 13:02:14 | Mark.Shannon | set | recipients:
+ Mark.Shannon, nedbat, pablogsal, zhtw1234 |
2020-12-14 13:02:14 | Mark.Shannon | set | messageid: <1607950934.71.0.135313701528.issue42246@roundup.psfhosted.org> |
2020-12-14 13:02:14 | Mark.Shannon | link | issue42246 messages |
2020-12-14 13:02:14 | Mark.Shannon | create | |
|