/external/python/cpython3/Lib/test/ |
D | test__opcode.py | 12 self.assertEqual(stack_effect(dis.opmap['POP_TOP']), -1) 13 self.assertEqual(stack_effect(dis.opmap['DUP_TOP_TWO']), 2) 14 self.assertEqual(stack_effect(dis.opmap['BUILD_SLICE'], 0), -1) 15 self.assertEqual(stack_effect(dis.opmap['BUILD_SLICE'], 1), -1) 16 self.assertEqual(stack_effect(dis.opmap['BUILD_SLICE'], 3), -2) 18 self.assertRaises(ValueError, stack_effect, dis.opmap['BUILD_SLICE']) 19 self.assertRaises(ValueError, stack_effect, dis.opmap['POP_TOP'], 0) 21 for name, code in dis.opmap.items(): 30 for code in set(range(256)) - set(dis.opmap.values()): 36 JUMP_IF_TRUE_OR_POP = dis.opmap['JUMP_IF_TRUE_OR_POP'] [all …]
|
D | test_richcmp.py | 87 opmap = { variable 99 for op in opmap[opname]: 103 for op in opmap[opname]: 118 for opname in opmap: 133 for ops in opmap.values(): 152 for ops in opmap.values(): 163 for op in opmap[opname]: 303 for op in opmap[opname]: 337 for op in opmap["eq"]: 350 for op in opmap["lt"]:
|
D | test_dis.py | 494 self.assertEqual(dis.opmap["NOP"], 9) 495 self.assertIn(dis.opmap["LOAD_CONST"], dis.hasconst) 496 self.assertIn(dis.opmap["STORE_NAME"], dis.hasname) 499 self.assertEqual(dis.opname[dis.opmap["LOAD_FAST"]], "LOAD_FAST") 502 self.assertEqual(dis.opmap["EXTENDED_ARG"], dis.EXTENDED_ARG) 503 self.assertEqual(dis.opmap["STORE_NAME"], dis.HAVE_ARGUMENT)
|
/external/python/cpython2/Lib/test/ |
D | test_dis.py | 106 self.assertEqual(dis.opmap["STOP_CODE"], 0) 107 self.assertIn(dis.opmap["LOAD_CONST"], dis.hasconst) 108 self.assertIn(dis.opmap["STORE_NAME"], dis.hasname) 111 self.assertEqual(dis.opname[dis.opmap["LOAD_FAST"]], "LOAD_FAST") 114 self.assertEqual(dis.opmap["EXTENDED_ARG"], dis.EXTENDED_ARG) 115 self.assertEqual(dis.opmap["STORE_NAME"], dis.HAVE_ARGUMENT)
|
D | test_richcmp.py | 87 opmap = { variable 99 for op in opmap[opname]: 103 for op in opmap[opname]: 118 for opname in opmap: 133 for ops in opmap.itervalues(): 152 for ops in opmap.itervalues(): 163 for op in opmap[opname]: 279 for op in opmap[opname]: 313 for op in opmap["eq"]: 326 for op in opmap["lt"]:
|
/external/python/cpython3/Tools/scripts/ |
D | generate_opcode_h.py | 43 opmap = opcode['opmap'] 47 if name in opmap: 48 fobj.write("#define %-23s %3s\n" % (name, opmap[name]))
|
/external/python/cpython3/Lib/lib2to3/pgen2/ |
D | grammar.py | 184 opmap = {} variable 188 opmap[op] = getattr(token, name)
|
D | driver.py | 67 type = grammar.opmap[value]
|
D | pgen.py | 99 itoken = grammar.opmap[value] # Fails if unknown token
|
/external/python/cpython2/Lib/lib2to3/pgen2/ |
D | grammar.py | 208 opmap = {} variable 212 opmap[op] = getattr(token, name)
|
D | driver.py | 68 type = grammar.opmap[value]
|
D | pgen.py | 99 itoken = grammar.opmap[value] # Fails if unknown token
|
/external/python/cpython2/Lib/ |
D | opcode.py | 22 opmap = {} variable 29 opmap[name] = op
|
D | modulefinder.py | 18 LOAD_CONST = dis.opmap['LOAD_CONST'] 19 IMPORT_NAME = dis.opmap['IMPORT_NAME'] 20 STORE_NAME = dis.opmap['STORE_NAME'] 21 STORE_GLOBAL = dis.opmap['STORE_GLOBAL']
|
/external/python/cpython3/Lib/ |
D | opcode.py | 35 opmap = {} variable 40 opmap[name] = op
|
D | modulefinder.py | 12 LOAD_CONST = dis.opmap['LOAD_CONST'] 13 IMPORT_NAME = dis.opmap['IMPORT_NAME'] 14 STORE_NAME = dis.opmap['STORE_NAME'] 15 STORE_GLOBAL = dis.opmap['STORE_GLOBAL']
|
D | dis.py | 19 FORMAT_VALUE = opmap['FORMAT_VALUE'] 26 MAKE_FUNCTION = opmap['MAKE_FUNCTION']
|
/external/python/cpython3/Parser/pgen/ |
D | pgen.py | 139 self.opmap = dict(token.generate_opmap(token_lines)) 141 self.opmap["<>"] = "NOTEQUAL" 258 tok_name = self.opmap[value] # Fails if unknown token
|
/external/python/cpython2/Python/ |
D | makeopcodetargets.py | 25 for opname, op in opcode.opmap.items():
|
/external/python/cpython3/Python/ |
D | makeopcodetargets.py | 35 for opname, op in opcode.opmap.items():
|
/external/python/cpython3/Lib/lib2to3/ |
D | patcomp.py | 188 elif value in grammar.opmap: 189 return grammar.opmap[value]
|
D | btm_utils.py | 9 tokens = grammar.opmap
|
/external/python/cpython2/Lib/lib2to3/ |
D | patcomp.py | 188 elif value in grammar.opmap: 189 return grammar.opmap[value]
|
D | btm_utils.py | 9 tokens = grammar.opmap
|
/external/python/cpython2/Doc/library/ |
D | dis.rst | 98 .. data:: opmap
|