opcode
index
/usr/local/lib/python2.3/opcode.py

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

 
Data
        EXTENDED_ARG = 143
HAVE_ARGUMENT = 90
__all__ = ['cmp_op', 'hasconst', 'hasname', 'hasjrel', 'hasjabs', 'haslocal', 'hascompare', 'hasfree', 'opname', 'opmap', 'HAVE_ARGUMENT', 'EXTENDED_ARG']
cmp_op = ('<', '<=', '==', '!=', '>', '>=', 'in', 'not in', 'is', 'is not', 'exception match', 'BAD')
hascompare = [106]
hasconst = [100]
hasfree = [135, 136, 137]
hasjabs = [113, 119]
hasjrel = [93, 110, 111, 112, 120, 121, 122]
haslocal = [124, 125, 126]
hasname = [90, 91, 95, 96, 97, 98, 101, 105, 107, 108, 116]
opmap = {'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, 'BINARY_POWER': 19, 'BINARY_RSHIFT': 63, ...}
opname = ['STOP_CODE', 'POP_TOP', 'ROT_TWO', 'ROT_THREE', 'DUP_TOP', 'ROT_FOUR', '<6>', '<7>', '<8>', '<9>', 'UNARY_POSITIVE', 'UNARY_NEGATIVE', 'UNARY_NOT', 'UNARY_CONVERT', '<14>', 'UNARY_INVERT', '<16>', '<17>', '<18>', 'BINARY_POWER', ...]