Home
last modified time | relevance | path

Searched refs:co_consts (Results 1 – 25 of 26) sorted by relevance

12

/third_party/python/Lib/test/
Dtest_code.py156 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!')
Dtest_compile.py224 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]
Dtest_peepholer.py14 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)
Dtest_dtrace.py135 for c in code.co_consts:
Dtest_dis.py772 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]
Dtest_capi.py640 self.assertEqual(result.co_consts, expected.co_consts)
Dtest_marshal.py134 for obj in co.co_consts:
Dtest_inspect.py3969 setcomp_code = make_set.__code__.co_consts[1]
/third_party/python/Objects/clinic/
Dcodeobject.c.h160 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/
Ddis.py165 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,
Dmodulefinder.py399 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)
Dtrace.py344 for c in code.co_consts:
/third_party/python/Objects/
Dcodeobject.c246 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()
Dfuncobject.c30 PyObject *consts = code_obj->co_consts; in PyFunction_NewWithQualName()
/third_party/node/tools/inspector_protocol/jinja2/
Ddebug.py273 code.co_flags, code.co_code, code.co_consts,
280 code.co_flags, code.co_code, code.co_consts,
/third_party/python/Include/cpython/
Dcode.h28 PyObject *co_consts; /* list (constants used) */ member
/third_party/python/Lib/test/test_import/
D__init__.py680 constants = list(code.co_consts)
684 code = code.replace(co_consts=tuple(constants))
/third_party/python/Misc/NEWS.d/
D3.10.0a6.rst120 like already did for co_consts.
D3.10.1.rst242 Compiler now removes trailing unused constants from co_consts.
/third_party/python/Python/
Dimport.c857 constants = co->co_consts; in update_code_filenames()
Dmarshal.c519 w_object(co->co_consts, p); in w_complex_object()
Dceval.c1668 consts = co->co_consts; in _PyEval_EvalFrameDefault()
/third_party/python/Doc/library/
Ddis.rst857 Pushes ``co_consts[consti]`` onto the stack.
Dinspect.rst158 | | co_consts | tuple of constants used |
/third_party/python/Doc/reference/
Ddatamodel.rst961 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

12