Skip to content

Commit

Permalink
pythongh-119786: move locations doc to InternalDocs (python#120445)
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel authored and estyxx committed Jul 17, 2024
1 parent b3a69be commit 2bb65d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions InternalDocs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
8 changes: 4 additions & 4 deletions Objects/locations.md → InternalDocs/locations.md
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 2bb65d1

Please sign in to comment.