def ingest(self, co, classname=None, code_objects={}, show_asm=None): tokens, customize = Scanner3.ingest(self, co, classname, code_objects, show_asm) not_pypy36 = not (self.version == 3.6 and self.is_pypy) for t in tokens: # The lowest bit of flags indicates whether the # var-keyword argument is placed at the top of the stack if (not_pypy36 and t.op == self.opc.CALL_FUNCTION_EX and t.attr & 1): t.kind = 'CALL_FUNCTION_EX_KW' pass elif t.op == self.opc.BUILD_STRING: t.kind = 'BUILD_STRING_%s' % t.attr elif t.op == self.opc.CALL_FUNCTION_KW: t.kind = 'CALL_FUNCTION_KW_%s' % t.attr elif t.op == self.opc.FORMAT_VALUE: if (t.attr & 0x4): t.kind = 'FORMAT_VALUE_ATTR' pass elif (not_pypy36 and t.op == self.opc.BUILD_MAP_UNPACK_WITH_CALL): t.kind = 'BUILD_MAP_UNPACK_WITH_CALL_%d' % t.attr elif (not_pypy36 and t.op == self.opc.BUILD_TUPLE_UNPACK_WITH_CALL): t.kind = 'BUILD_TUPLE_UNPACK_WITH_CALL_%d' % t.attr pass return tokens, customize
def __init__(self, show_asm=None, is_pypy=False): Scanner3.__init__(self, 3.6, show_asm, is_pypy) return
def __init__(self, show_asm=None): Scanner3.__init__(self, 3.8, show_asm) return