[issue39537] Change line number table format

2021-04-07 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39537] Change line number table format

2021-04-07 Thread Mark Shannon
Mark Shannon added the comment: PEP 626 fixed this -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue39537] Change line number table format

2020-04-03 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue39537] Change line number table format

2020-02-21 Thread Mark Shannon
Mark Shannon 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

[issue39537] Change line number table format

2020-02-20 Thread Brandt Bucher
Change by Brandt Bucher : -- nosy: +brandtbucher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue39537] Change line number table format

2020-02-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Every bytecode is generated from some AST node which has an associated range of lines. So there should not be bytecodes that have no line number. If for some reasons you generate bytecodes that have no line number, you can just set lineno > end_lineno for

[issue39537] Change line number table format

2020-02-14 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue39537] Change line number table format

2020-02-06 Thread Mark Shannon
Mark Shannon added the comment: Serhiy, How would you handle bytecodes that have no line number? -- nosy: +Mark.Shannon ___ Python tracker ___

[issue39537] Change line number table format

2020-02-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I planned to add a table for end line numbers, so every instruction will be associated with a range of lines. For example, in x = { a, b } the BUILD_SET instruction will be associated with lines 1-4. Currently it is associated only with line

[issue39537] Change line number table format

2020-02-03 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +17699 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18326 ___ Python tracker ___ ___

[issue39537] Change line number table format

2020-02-03 Thread Mark Shannon
Change by Mark Shannon : -- nosy: +nedbat, pablogsal, skip.montanaro -Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list maili

[issue39537] Change line number table format

2020-02-03 Thread Mark Shannon
New submission from Mark Shannon : The current line number table format has two issues that need to be addressed. 1. There is no way to express that a bytecode does not have have a line number. The `END_ASYNC_FOR` bytecode, bytecodes for cleaning up the variable used to store exceptions in ex