[issue39987] Simplify setting line numbers in the compiler

2020-03-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39987] Simplify setting line numbers in the compiler

2020-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 61cb3d02b83e746e59bb1351a0865e3b8714b2d6 by Serhiy Storchaka in branch 'master': bpo-39987: Simplify setting lineno in the compiler. (GH-19037) https://github.com/python/cpython/commit/61cb3d02b83e746e59bb1351a0865e3b8714b2d6 --

[issue39987] Simplify setting line numbers in the compiler

2020-03-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +18388 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19037 ___ Python tracker

[issue39987] Simplify setting line numbers in the compiler

2020-03-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Currently the compiler can set the line number to the instruction or keep it unset (zero). Then, when create linenotab it adds entries only for set line numbers. But in rare cases (docstring or the first instruction in the module, definition of a