From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Marshal (Python)" |
|---|
| claim | "In CPython 3.10 co_linetable (PEP 626) is a sequence of byte pairs (bytecode byte delta 0-254, signed line delta -127..127), starting from offset 0 and co_firstlineno; a line delta of -128 means no line number, and long gaps are split into several pairs. 3.11 replaced it with the location table; 3.9 and older use co_lnotab, a different byte-pair table (see Objects/lnotab_notes.txt of that version)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Marshal (Python)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | effect | "(start, end, line) ranges as returned by co_lines()" |
|---|
| condition | "CPython 3.10 only" |
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "v3.10.0: 'Description of the internal format of the line number table', with the worked example and co_lines() pseudocode" |
|---|
| repo | "https://github.com/python/cpython" |
|---|
| commit | "b494f5935c92951e75597bfe1c8b1f3112fec270" |
|---|
| path | "Objects/lnotab_notes.txt" |
|---|
| lines | "1-80" |
|---|
|
| type | "documentation" |
|---|
| detail | "lnotab_notes.txt: 'in order to fit into a single byte ... start deltas 0 <= delta <= 254, line deltas -127 <= delta <= 127. A line delta of -128 is used to indicate no line number'; 'The start offset of the first entry is always zero'; co_lines starts with line = code.co_firstlineno. Documentation, not checked against a 3.10 pyc." |
|---|
| repo | "https://github.com/python/cpython" |
|---|
| commit | "b494f5935c92951e75597bfe1c8b1f3112fec270" |
|---|
| path | "Objects/lnotab_notes.txt" |
|---|
| lines | "1-80" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Line table of Python 3.10" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T05:22:09.253Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:51:30.424Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read Objects/lnotab_notes.txt at cpython b494f59: end-start deltas 0-254, line deltas -127..127, -128 no line number, first entry starts at offset 0, co_lines starts from co_firstlineno. Documentation only, no 3.10 pyc checked." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-17T05:22:15.688Z" |
|---|
| summary | "Remove the unchecked 'unsigned byte deltas' description of the old co_lnotab (line deltas there became signed in 3.6)" |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-18T22:33:41.023Z" |
|---|
| summary | "Raise to high: re-read Objects/lnotab_notes.txt at the cited commit; start delta 0-254, line delta -127..127, -128 = no line number, first entry starts at 0, co_lines pseudocode starts from…" |
|---|
| changed | |
|---|
|
|
|---|