Home
last modified time | relevance | path

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

12

/external/python/cpython2/Lib/test/
Dtest_code.py102 print "consts:", tuple(consts(co.co_consts))
139 v = self.find_const(co.co_consts, 'str_value')
145 v = self.find_const(co.co_consts, ('str_value',))
157 v = self.find_const(co.co_consts, 'str\0value!')
Dtest_compile.py324 for variable in self.test_32_63_bit_values.func_code.co_consts:
627 for const in func.__code__.co_consts:
632 % (expected, func.__code__.co_consts))
Dtest_new.py116 constants = c.co_consts
/external/python/cpython3/Lib/test/
Dtest_code.py132 print("consts:", tuple(consts(co.co_consts)))
161 c.co_stacksize, c.co_flags, c.co_code, c.co_consts, c.co_names,
213 v = self.find_const(co.co_consts, 'str_value')
219 v = self.find_const(co.co_consts, ('str_value',))
225 v = self.find_const(co.co_consts, frozenset(('str_value',)))
237 v = self.find_const(co.co_consts, 'str\0value!')
Dtest_peepholer.py180 self.assertNotIn("x"*10000, code.co_consts)
183 self.assertNotIn(1<<1000, code.co_consts)
186 self.assertNotIn(2**1000, code.co_consts)
Dtest_compile.py222 for variable in self.test_32_63_bit_values.__code__.co_consts:
484 for obj in c.co_consts:
581 for const in func.__code__.co_consts:
586 % (expected, func.__code__.co_consts))
Dtest_dtrace.py135 for c in code.co_consts:
Dtest_dis.py670 co_tricky_nested_f = tricky.__func__.__code__.co_consts[1]
830 code_object_f = outer.__code__.co_consts[3]
832 code_object_inner = code_object_f.co_consts[3]
/external/python/cpython3/Lib/
Ddis.py155 if co.co_consts:
157 for i_c in enumerate(co.co_consts):
270 co.co_consts, cell_names, linestarts,
357 co.co_consts, cell_names, linestarts, file=file)
364 for x in co.co_consts:
485 co.co_consts, self._cell_names,
513 names=co.co_names, constants=co.co_consts,
Dmodulefinder.py343 consts = co.co_consts
405 for c in co.co_consts:
557 consts = list(co.co_consts)
Dtypes.py263 co.co_consts, co.co_names, co.co_varnames, co.co_filename,
Dtrace.py343 for c in code.co_consts:
/external/python/cpython2/Objects/
Dcodeobject.c129 co->co_consts = consts; in PyCode_New()
206 {"co_consts", T_OBJECT, OFF(co_consts), READONLY},
348 Py_XDECREF(co->co_consts); in code_dealloc()
399 cmp = PyObject_Compare(co->co_consts, cp->co_consts); in code_compare()
586 consts1 = _PyCode_ConstantKey(co->co_consts); in code_richcompare()
589 consts2 = _PyCode_ConstantKey(cp->co_consts); in code_richcompare()
635 h2 = PyObject_Hash(co->co_consts); in code_hash()
Dfuncobject.c28 consts = ((PyCodeObject *)code)->co_consts; in PyFunction_New()
/external/python/cpython3/Objects/
Dcodeobject.c201 co->co_consts = consts; in PyCode_New()
281 {"co_consts", T_OBJECT, OFF(co_consts), READONLY},
446 Py_XDECREF(co->co_consts); in code_dealloc()
654 consts1 = _PyCode_ConstantKey(co->co_consts); in code_richcompare()
657 consts2 = _PyCode_ConstantKey(cp->co_consts); in code_richcompare()
703 h2 = PyObject_Hash(co->co_consts); in code_hash()
/external/python/cpython2/Tools/compiler/
Ddumppyc.py26 for obj in co.co_consts:
Dstacktest.py7 for const in co.co_consts:
/external/python/cpython2/Include/
Dcode.h17 PyObject *co_consts; /* list (constants used) */ member
/external/python/cpython2/Lib/
Dmodulefinder.py365 consts = co.co_consts
382 consts = co.co_consts
451 for c in co.co_consts:
604 consts = list(co.co_consts)
Ddis.py95 print '(' + repr(co.co_consts[oparg]) + ')',
/external/libchrome/third_party/jinja2/
Ddebug.py273 code.co_flags, code.co_code, code.co_consts,
280 code.co_flags, code.co_code, code.co_consts,
/external/python/cpython3/Include/
Dcode.h30 PyObject *co_consts; /* list (constants used) */ member
/external/python/setuptools/setuptools/
Ddepends.py164 const = code.co_consts[arg]
/external/scapy/scapy/
Dautomaton.py474 for n in st.atmt_origfunc.__code__.co_names+st.atmt_origfunc.__code__.co_consts:
483 for n in f.__code__.co_names+f.__code__.co_consts:
493 for n in f.__code__.co_names+f.__code__.co_consts:
/external/python/setuptools/setuptools/command/
Dbdist_egg.py446 for const in code.co_consts:

12