gh-134690: Removed deprecated codetype.co_lnotab (#134691)

This commit is contained in:
sobolevn 2026-04-25 19:13:48 +03:00 committed by GitHub
parent 6d7bbee1d5
commit 85d3bcd4f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 16 additions and 348 deletions

View file

@ -70,14 +70,6 @@ ### Format of the locations table
representation of the source code positions of instructions, which are
returned by the `co_positions()` iterator.
> [!NOTE]
> `co_linetable` is not to be confused with `co_lnotab`.
> For backwards compatibility, `co_lnotab` exposes the format
> as it existed in Python 3.10 and lower: this older format
> stores only the start line for each instruction.
> It is lazily created from `co_linetable` when accessed.
> See [`Objects/lnotab_notes.txt`](../Objects/lnotab_notes.txt) for more details.
`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 the most significant bit unset.