mirror of
https://github.com/python/cpython.git
synced 2025-11-08 21:52:45 +00:00
gh-119786: move locations doc to InternalDocs (#120445)
This commit is contained in:
parent
d1c673b658
commit
d484383861
2 changed files with 8 additions and 6 deletions
|
|
@ -14,6 +14,8 @@ it is not, please report that through the
|
|||
|
||||
[Compiler Design](compiler.md)
|
||||
|
||||
[Exception Handling](exception_handling.md)
|
||||
|
||||
[Adaptive Instruction Families](adaptive.md)
|
||||
|
||||
[The Source Code Locations Table](locations.md)
|
||||
|
||||
[Exception Handling](exception_handling.md)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
# Locations table
|
||||
|
||||
For versions up to 3.10 see ./lnotab_notes.txt
|
||||
The `co_linetable` bytes object of code objects contains a compact
|
||||
representation of the source code positions of instructions, which are
|
||||
returned by the `co_positions()` iterator.
|
||||
|
||||
In version 3.11 the `co_linetable` bytes object of code objects contains a compact representation of the positions returned by the `co_positions()` iterator.
|
||||
|
||||
The `co_linetable` consists of a sequence of location entries.
|
||||
`co_linetable` consists of a sequence of location entries.
|
||||
Each entry starts with a byte with the most significant bit set, followed by zero or more bytes with most significant bit unset.
|
||||
|
||||
Each entry contains the following information:
|
||||
Loading…
Add table
Add a link
Reference in a new issue