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 Mark.Shannon
Recipients BTaskaya, Mark.Shannon, brandtbucher, nedbat, pablogsal, serhiy.storchaka, skip.montanaro
Date 2020-02-21.14:33:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582295584.03.0.309543469854.issue39537@roundup.psfhosted.org>
In-reply-to
Content
Serhiy,

Although the code generator is syntax directed, not all code has an explicit piece of syntax attached.

For example in the following code:
```
def foo():
    if x:
        print("yes")
    else:
        print("no")
```
the compiler emits code to return from the function (LOAD_CONST None; RETURN_VALUE), but there is no explicit return, and no meaningful line number for the return.

Also consider, the artificial try-except block generated for async for loops and the cleanup code for named exception variables.
History
Date User Action Args
2020-02-21 14:33:04Mark.Shannonsetrecipients: + Mark.Shannon, skip.montanaro, nedbat, serhiy.storchaka, pablogsal, brandtbucher, BTaskaya
2020-02-21 14:33:04Mark.Shannonsetmessageid: <1582295584.03.0.309543469854.issue39537@roundup.psfhosted.org>
2020-02-21 14:33:04Mark.Shannonlinkissue39537 messages
2020-02-21 14:33:03Mark.Shannoncreate