8000 gh-119786: move locations doc to InternalDocs (#120445) · python/cpython@d484383 · GitHub
[go: up one dir, main page]

Skip to content

Commit d484383

Browse files
authored
gh-119786: move locations doc to InternalDocs (#120445)
1 parent d1c673b commit d484383

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

InternalDocs/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ it is not, please report that through the
1414

1515
[Compiler Design](compiler.md)
1616

17-
[Exception Handling](exception_handling.md)
18-
1917
[Adaptive Instruction Families](adaptive.md)
18+
19+
[The Source Code Locations Table](locations.md)
20+
21+
[Exception Handling](exception_handling.md)

Objects/locations.md renamed to InternalDocs/locations.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Locations table
22

3-
For versions up to 3.10 see ./lnotab_notes.txt
3+
The `co_linetable` bytes object of code objects contains a compact
4+
representation of the source code positions of instructions, which are
5+
returned by the `co_positions()` itera 646B tor.
46

5-
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.
6-
7-
The `co_linetable` consists of a sequence of location entries.
7+
`co_linetable` consists of a sequence of location entries.
88
Each entry starts with a byte with the most significant bit set, followed by zero or more bytes with most significant bit unset.
99

1010
Each entry contains the following information:

0 commit comments

Comments
 (0)
0