/third_party/python/Lib/ |
H A D | dis.py | 204 if co.co_consts: 206 for i_c in enumerate(co.co_consts): 349 co.co_names, co.co_consts, 354 def _get_const_value(op, arg, co_consts): 358 Otherwise (if it is a LOAD_CONST and co_consts is not 365 if co_consts is not None: 366 argval = co_consts[arg] 369 def _get_const_info(op, arg, co_consts): 377 argval = _get_const_value(op, arg, co_consts) 424 names=None, co_consts [all...] |
H A D | modulefinder.py | 442 for c in co.co_consts: 595 consts = list(co.co_consts) 600 return co.replace(co_consts=tuple(consts), co_filename=new_filename)
|
H A D | trace.py | 345 for c in code.co_consts:
|
/third_party/python/Lib/test/ |
H A D | test_compile.py | 243 for variable in self.test_32_63_bit_values.__code__.co_consts: 505 for obj in c.co_consts: 609 for const in func.__code__.co_consts: 614 % (expected, func.__code__.co_consts)) 629 self.assertIs(f1.__code__.co_consts, f2.__code__.co_consts) 642 self.assertIs(f1.__code__.co_consts, f2.__code__.co_consts) 649 self.assertIs(f1.__code__.co_consts[1], 650 f2.__code__.co_consts[ [all...] |
H A D | test_code.py | 165 print("consts:", tuple(consts(co.co_consts))) 231 co.co_consts, 255 # different co_name, co_varnames, co_consts 271 ("co_consts", code2.co_consts), 308 co.co_consts, 477 v = self.find_const(co.co_consts, 'str_value') 483 v = self.find_const(co.co_consts, ('str_value',)) 489 v = self.find_const(co.co_consts, frozenset(('str_value',))) 501 v = self.find_const(co.co_consts, 'st [all...] |
H A D | test_peepholer.py | 30 for c in f.co_consts: 268 self.assertNotIn("x"*10000, code.co_consts) 272 self.assertNotIn(1<<1000, code.co_consts) 276 self.assertNotIn(2**1000, code.co_consts)
|
H A D | test_dtrace.py | 140 for c in code.co_consts:
|
H A D | test_dis.py | 1140 co_tricky_nested_f = tricky.__func__.__code__.co_consts[1] 1309 code_object_f = outer.__code__.co_consts[3] 1311 code_object_inner = code_object_f.co_consts[3]
|
H A D | test_marshal.py | 160 for obj in co.co_consts:
|
H A D | test_inspect.py | 4090 setcomp_code = make_set.__code__.co_consts[1]
|
/third_party/python/Objects/clinic/ |
H A D | codeobject.c.h | 162 " co_flags=-1, co_firstlineno=-1, co_code=None, co_consts=None,\n" 178 PyObject *co_consts, PyObject *co_names, 189 static const char * const _keywords[] = {"co_argcount", "co_posonlyargcount", "co_kwonlyargcount", "co_nlocals", "co_stacksize", "co_flags", "co_firstlineno", "co_code", "co_consts", "co_names", "co_varnames", "co_freevars", "co_cellvars", "co_filename", "co_name", "co_qualname", "co_linetable", "co_exceptiontable", NULL}; in code_replace() 201 PyObject *co_consts = self->co_consts; in code_replace() local 294 _PyArg_BadArgument("replace", "argument 'co_consts'", "tuple", args[8]); in code_replace() 297 co_consts = args[8]; in code_replace() 397 return_value = code_replace_impl(self, co_argcount, co_posonlyargcount, co_kwonlyargcount, co_nlocals, co_stacksize, co_flags, co_firstlineno, co_code, co_consts, co_names, co_varnames, co_freevars, co_cellvars, co_filename, co_name, co_qualname, co_linetable, co_exceptiontable); in code_replace()
|
/third_party/node/tools/inspector_protocol/jinja2/ |
H A 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/Objects/ |
H A D | codeobject.c | 309 co->co_consts = con->consts; in init_code() 1625 Py_XDECREF(co->co_consts); in code_dealloc() 1712 consts1 = _PyCode_ConstantKey(co->co_consts); in code_richcompare() 1715 consts2 = _PyCode_ConstantKey(cp->co_consts); in code_richcompare() 1765 h1 = PyObject_Hash(co->co_consts); in code_hash() 1796 {"co_consts", T_OBJECT, OFF(co_consts), READONLY}, 1889 co_consts: object(subclass_of="&PyTuple_Type", c_default="self->co_consts") = None 1908 PyObject *co_consts, PyObjec in code_replace_impl() 1904 code_replace_impl(PyCodeObject *self, int co_argcount, int co_posonlyargcount, int co_kwonlyargcount, int co_nlocals, int co_stacksize, int co_flags, int co_firstlineno, PyBytesObject *co_code, PyObject *co_consts, PyObject *co_names, PyObject *co_varnames, PyObject *co_freevars, PyObject *co_cellvars, PyObject *co_filename, PyObject *co_name, PyObject *co_qualname, PyBytesObject *co_linetable, PyBytesObject *co_exceptiontable) code_replace_impl() argument [all...] |
H A D | funcobject.c | 70 PyObject *consts = code_obj->co_consts; in PyFunction_NewWithQualName()
|
/third_party/python/Include/cpython/ |
H A D | code.h | 49 * - co_consts \ 60 PyObject *co_consts; /* list (constants used) */ \
|
/third_party/jinja2/ |
H A D | debug.py | 131 code.co_consts,
|
/third_party/python/Tools/scripts/ |
H A D | deepfreeze.py | 242 co_consts = self.generate(name + "_consts", code.co_consts) 265 self.write(f".co_consts = {co_consts},")
|
H A D | umarshal.py | 283 retval.co_consts = self.r_object()
|
/third_party/python/Lib/test/test_capi/ |
H A D | test_misc.py | 823 self.assertEqual(result.co_consts, expected.co_consts)
|
/third_party/python/Lib/test/test_import/ |
H A D | __init__.py | 700 constants = list(code.co_consts) 704 code = code.replace(co_consts=tuple(constants))
|
/third_party/python/Python/ |
H A D | import.c | 826 constants = co->co_consts; in update_code_filenames()
|
H A D | marshal.c | 565 w_object(co->co_consts, p); in w_complex_object()
|
H A D | compile.c | 8511 get_const_value(int opcode, int oparg, PyObject *co_consts) in get_const_value() argument 8516 constant = PyList_GET_ITEM(co_consts, oparg); in get_const_value()
|
H A D | ceval.c | 1700 consts = co->co_consts; \
|