/third_party/python/Lib/test/ |
D | test_code.py | 156 print("consts:", tuple(consts(co.co_consts))) 223 co.co_consts, 254 ("co_consts", code2.co_consts), 297 v = self.find_const(co.co_consts, 'str_value') 303 v = self.find_const(co.co_consts, ('str_value',)) 309 v = self.find_const(co.co_consts, frozenset(('str_value',))) 321 v = self.find_const(co.co_consts, 'str\0value!')
|
D | test_compile.py | 224 for variable in self.test_32_63_bit_values.__code__.co_consts: 486 for obj in c.co_consts: 590 for const in func.__code__.co_consts: 595 % (expected, func.__code__.co_consts)) 630 self.assertIs(f1.__code__.co_consts[1], 631 f2.__code__.co_consts[1][0]) 632 self.assertIs(next(iter(f3.__code__.co_consts[1])), 633 f2.__code__.co_consts[1]) 662 self.assertEqual(f1.__code__.co_consts, ("docstring", 42)) 921 genexp_code = return_genexp.__code__.co_consts[1]
|
D | test_peepholer.py | 14 for c in f.co_consts: 244 self.assertNotIn("x"*10000, code.co_consts) 248 self.assertNotIn(1<<1000, code.co_consts) 252 self.assertNotIn(2**1000, code.co_consts)
|
D | test_dtrace.py | 135 for c in code.co_consts:
|
D | test_dis.py | 772 co_tricky_nested_f = tricky.__func__.__code__.co_consts[1] 941 code_object_f = outer.__code__.co_consts[3] 943 code_object_inner = code_object_f.co_consts[3]
|
D | test_capi.py | 640 self.assertEqual(result.co_consts, expected.co_consts)
|
D | test_marshal.py | 134 for obj in co.co_consts:
|
D | test_inspect.py | 3969 setcomp_code = make_set.__code__.co_consts[1]
|
/third_party/python/Objects/clinic/ |
D | codeobject.c.h | 160 PyObject *co_consts, PyObject *co_names, 181 PyObject *co_consts = self->co_consts; in code_replace() local 275 co_consts = args[8]; in code_replace() 352 …yargcount, co_nlocals, co_stacksize, co_flags, co_firstlineno, co_code, co_consts, co_names, co_va… in code_replace()
|
/third_party/python/Lib/ |
D | dis.py | 165 if co.co_consts: 167 for i_c in enumerate(co.co_consts): 280 co.co_consts, cell_names, linestarts, 373 co.co_consts, cell_names, linestarts, file=file) 380 for x in co.co_consts: 490 co.co_consts, self._cell_names, 518 names=co.co_names, constants=co.co_consts,
|
D | modulefinder.py | 399 consts = co.co_consts 461 for c in co.co_consts: 614 consts = list(co.co_consts) 619 return co.replace(co_consts=tuple(consts), co_filename=new_filename)
|
D | trace.py | 344 for c in code.co_consts:
|
/third_party/python/Objects/ |
D | codeobject.c | 246 co->co_consts = consts; in PyCode_NewWithPosOnlyArgs() 391 {"co_consts", T_OBJECT, OFF(co_consts), READONLY}, 658 Py_XDECREF(co->co_consts); in code_dealloc() 727 PyObject *co_consts, PyObject *co_names, in code_replace_impl() argument 759 co_stacksize, co_flags, (PyObject*)co_code, co_consts, co_names, in code_replace_impl() 948 consts1 = _PyCode_ConstantKey(co->co_consts); in code_richcompare() 951 consts2 = _PyCode_ConstantKey(cp->co_consts); in code_richcompare() 997 h2 = PyObject_Hash(co->co_consts); in code_hash()
|
D | funcobject.c | 30 PyObject *consts = code_obj->co_consts; in PyFunction_NewWithQualName()
|
/third_party/node/tools/inspector_protocol/jinja2/ |
D | debug.py | 273 code.co_flags, code.co_code, code.co_consts, 280 code.co_flags, code.co_code, code.co_consts,
|
/third_party/python/Include/cpython/ |
D | code.h | 28 PyObject *co_consts; /* list (constants used) */ member
|
/third_party/python/Lib/test/test_import/ |
D | __init__.py | 680 constants = list(code.co_consts) 684 code = code.replace(co_consts=tuple(constants))
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0a6.rst | 120 like already did for co_consts.
|
D | 3.10.1.rst | 242 Compiler now removes trailing unused constants from co_consts.
|
/third_party/python/Python/ |
D | import.c | 857 constants = co->co_consts; in update_code_filenames()
|
D | marshal.c | 519 w_object(co->co_consts, p); in w_complex_object()
|
D | ceval.c | 1668 consts = co->co_consts; in _PyEval_EvalFrameDefault()
|
/third_party/python/Doc/library/ |
D | dis.rst | 857 Pushes ``co_consts[consti]`` onto the stack.
|
D | inspect.rst | 158 | | co_consts | tuple of constants used |
|
/third_party/python/Doc/reference/ |
D | datamodel.rst | 961 single: co_consts (code object attribute) 986 representing the sequence of bytecode instructions; :attr:`co_consts` is 1014 If a code object represents a function, the first item in :attr:`co_consts` is
|