class documentation

class _LineNumberTableParser(_BaseLineNumberTableParser): (source)

View In Hierarchy

Parses the Python 3.10+ line number table format. See https://github.com/python/cpython/commit/877df851c3ecdb55306840e247596e7b7805a60a

Method __init__ Undocumented
Method get Get the line number for the instruction at the given position.
Property line_delta Undocumented

Inherited from _BaseLineNumberTableParser:

Instance Variable lineno Undocumented
Instance Variable lnotab Undocumented
Instance Variable next_addr Undocumented
Instance Variable pos Undocumented
def __init__(self, *args, **kwargs): (source)
def get(self, i): (source)

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.

Undocumented