Mark Shannon <m...@hotpy.org> added the comment:
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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue39537> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com