opcode module - potentially shared between dis and other modules which
operate on bytecodes (e.g. peephole optimizers).
|
|
cmp_op = ('<', '<=', '==', '!=', '>', '>=', 'in', 'not in', 'i...
|
|
|
hasconst = [100]
|
|
|
hasname = [90, 91, 95, 96, 97, 98, 101, 105, 107, 108, 116]
|
|
|
hasjrel = [93, 110, 111, 112, 120, 121, 122]
|
|
|
hasjabs = [113, 119]
|
|
|
haslocal = [124, 125, 126]
|
|
|
hascompare = [106]
|
|
|
hasfree = [135, 136, 137]
|
|
|
opmap = {'BINARY_ADD': 23, 'BINARY_AND': 64, 'BINARY_DIVIDE': ...
|
|
|
opname = ['STOP_CODE', 'POP_TOP', 'ROT_TWO', 'ROT_THREE', 'DUP...
|
|
|
HAVE_ARGUMENT = 90
|
|
|
EXTENDED_ARG = 143
|