Message362407
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. |
|
Date |
User |
Action |
Args |
2020-02-21 14:33:04 | Mark.Shannon | set | recipients:
+ Mark.Shannon, skip.montanaro, nedbat, serhiy.storchaka, pablogsal, brandtbucher, BTaskaya |
2020-02-21 14:33:04 | Mark.Shannon | set | messageid: <1582295584.03.0.309543469854.issue39537@roundup.psfhosted.org> |
2020-02-21 14:33:04 | Mark.Shannon | link | issue39537 messages |
2020-02-21 14:33:03 | Mark.Shannon | create | |
|