SIGN IN SIGN UP

bpo-43950: Add code.co_positions (PEP 657) (GH-26955)

This PR is part of PEP 657 and augments the compiler to emit ending
line numbers as well as starting and ending columns from the AST
into compiled code objects. This allows bytecodes to be correlated
to the exact source code ranges that generated them.

This information is made available through the following public APIs:

* The `co_positions` method on code objects.
* The C API function `PyCode_Addr2Location`.

Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
P
Pablo Galindo committed
98eee94421dcb42c15f2d7fc4cd21357722fbe2a
Parent: 943e77d
Committed by GitHub <noreply@github.com> on 7/2/2021, 2:10:11 PM