Home
last modified time | relevance | path

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

/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
Dtest_import.py502 constants = list(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()
587 consts1 = _PyCode_ConstantKey(co->co_consts); in code_richcompare()
590 consts2 = _PyCode_ConstantKey(cp->co_consts); in code_richcompare()
636 h2 = PyObject_Hash(co->co_consts); in code_hash()
Dfuncobject.c28 consts = ((PyCodeObject *)code)->co_consts; in PyFunction_New()
/external/python/cpython2/Tools/compiler/
Dstacktest.py7 for const in co.co_consts:
Ddumppyc.py26 for obj 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]) + ')',
Dtrace.py409 for c in code.co_consts:
/external/libmojo/third_party/jinja2/
Ddebug.py249 code.co_flags, code.co_code, code.co_consts,
/external/python/cpython2/Python/
Dmarshal.c436 w_object(co->co_consts, p); in w_object()
Dimport.c987 constants = co->co_consts; in update_code_filenames()
Dceval.c1014 consts = co->co_consts; in PyEval_EvalFrameEx()
/external/python/cpython2/Doc/library/
Dinspect.rst175 | | co_consts | tuple of constants used | |
Ddis.rst631 Pushes ``co_consts[consti]`` onto the stack.
/external/python/cpython2/Doc/reference/
Ddatamodel.rst928 single: co_consts (code object attribute)
949 of bytecode instructions; :attr:`co_consts` is a tuple containing the literals
976 If a code object represents a function, the first item in :attr:`co_consts` is
/external/python/cpython2/Misc/
Dcheatsheet1284 co_consts (tuple, R/O): litterals used by the bytecode, 1st one is
DHISTORY64 in the byte code and co_consts even if they were not used, ie