class documentation
class _BaseLineNumberTableParser(abc.ABC): (source)
Known subclasses: pytype.pyc.opcodes._LineNumberTableParser
, pytype.pyc.opcodes._LineNumberTableParserPre310
State machine for decoding a Python line number array.
Method | __init__ |
Undocumented |
Method | get |
Get the line number for the instruction at the given position. |
Instance Variable | lineno |
Undocumented |
Instance Variable | lnotab |
Undocumented |
Instance Variable | next |
Undocumented |
Instance Variable | pos |
Undocumented |
overridden in
pytype.pyc.opcodes._LineNumberTableParser
, pytype.pyc.opcodes._LineNumberTableParserPre310
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.