Package compiler :: Module pyassem :: Class LineAddrTable
[hide private]
[frames] | no frames]

_ClassType LineAddrTable


This class builds the lnotab, which is documented in compile.c. Here's a brief recap:

For each SET_LINENO instruction after the first one, two bytes are added to lnotab. (In some cases, multiple two-byte entries are added.) The first byte is the distance in bytes between the instruction for the last SET_LINENO and the current SET_LINENO. The second byte is offset in line numbers. If either offset is greater than 255, multiple two-byte entries are added -- see compile.c for the delicate details.

Instance Methods [hide private]
addCode(self, *args)
nextLine(self, lineno)