Module opcode
[hide private]
[frames] | no frames]

Module opcode

opcode module - potentially shared between dis and other modules which operate on bytecodes (e.g. peephole optimizers).

Variables [hide private]
  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
Variables Details [hide private]

cmp_op

Value:
('<',
 '<=',
 '==',
 '!=',
 '>',
 '>=',
 'in',
 'not in',
...

opmap

Value:
{'BINARY_ADD': 23,
 'BINARY_AND': 64,
 'BINARY_DIVIDE': 21,
 'BINARY_FLOOR_DIVIDE': 26,
 'BINARY_LSHIFT': 62,
 'BINARY_MODULO': 22,
 'BINARY_MULTIPLY': 20,
 'BINARY_OR': 66,
...

opname

Value:
['STOP_CODE',
 'POP_TOP',
 'ROT_TWO',
 'ROT_THREE',
 'DUP_TOP',
 'ROT_FOUR',
 '<6>',
 '<7>',
...