Home
last modified time | relevance | path

Searched refs:co_consts (Results 1 – 25 of 47) 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.py156 print("consts:", tuple(consts(co.co_consts)))
223 co.co_consts,
254 ("co_consts", code2.co_consts),
291 v = self.find_const(co.co_consts, 'str_value')
297 v = self.find_const(co.co_consts, ('str_value',))
303 v = self.find_const(co.co_consts, frozenset(('str_value',)))
315 v = self.find_const(co.co_consts, 'str\0value!')
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))
621 self.assertIs(f1.__code__.co_consts[1],
622 f2.__code__.co_consts[1][0])
623 self.assertIs(next(iter(f3.__code__.co_consts[1])),
624 f2.__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.py741 co_tricky_nested_f = tricky.__func__.__code__.co_consts[1]
911 code_object_f = outer.__code__.co_consts[3]
913 code_object_inner = code_object_f.co_consts[3]
/external/python/cpython3/Objects/clinic/
Dcodeobject.c.h24 PyObject *co_consts, PyObject *co_names,
45 PyObject *co_consts = self->co_consts; in code_replace() local
174 co_consts = args[8]; in code_replace()
251 …yargcount, co_nlocals, co_stacksize, co_flags, co_firstlineno, co_code, co_consts, co_names, co_va… in code_replace()
/external/python/cpython3/Lib/
Ddis.py165 if co.co_consts:
167 for i_c in enumerate(co.co_consts):
280 co.co_consts, cell_names, linestarts,
370 co.co_consts, cell_names, linestarts, file=file)
377 for x in co.co_consts:
503 co.co_consts, self._cell_names,
531 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)
/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.c238 co->co_consts = consts; in PyCode_NewWithPosOnlyArgs()
383 {"co_consts", T_OBJECT, OFF(co_consts), READONLY},
573 Py_XDECREF(co->co_consts); in code_dealloc()
642 PyObject *co_consts, PyObject *co_names, in code_replace_impl() argument
674 co_stacksize, co_flags, (PyObject*)co_code, co_consts, co_names, in code_replace_impl()
863 consts1 = _PyCode_ConstantKey(co->co_consts); in code_richcompare()
866 consts2 = _PyCode_ConstantKey(cp->co_consts); in code_richcompare()
912 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/tensorflow/tensorflow/python/platform/
Dbenchmark.py62 func_code.co_code, func_code.co_consts,
73 func_code.co_code, func_code.co_consts,
81 func_code.co_code, func_code.co_consts,
/external/python/cpython2/Include/
Dcode.h17 PyObject *co_consts; /* list (constants used) */ member
/external/python/cpython3/Include/cpython/
Dcode.h28 PyObject *co_consts; /* list (constants used) */ member
/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/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/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