Skip to content

gh-119786: move locations doc to InternalDocs #120445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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