class documentation
class _LineNumberTableParserPre310(_BaseLineNumberTableParser): (source)
Parses the pre-Python 3.10 line number table format.
Method | get |
Get the line number for the instruction at the given position. |
Inherited from _BaseLineNumberTableParser
:
Method | __init__ |
Undocumented |
Instance Variable | lineno |
Undocumented |
Instance Variable | lnotab |
Undocumented |
Instance Variable | next |
Undocumented |
Instance Variable | pos |
Undocumented |
Get the line number for the instruction at the given position. This does NOT allow random access. Call with incremental numbers. The format of the line number table is described in https://github.com/python/cpython/blob/master/Objects/lnotab_notes.txt. Args: i: The byte position in the bytecode. i needs to stay constant or increase between calls. Returns: The line number corresponding to the position at i.