Searched refs:co_consts (Results 1 – 21 of 21) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_code.py | 102 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!')
|
D | test_compile.py | 324 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))
|
D | test_new.py | 116 constants = c.co_consts
|
D | test_import.py | 502 constants = list(code.co_consts)
|
/external/python/cpython2/Objects/ |
D | codeobject.c | 129 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()
|
D | funcobject.c | 28 consts = ((PyCodeObject *)code)->co_consts; in PyFunction_New()
|
/external/python/cpython2/Tools/compiler/ |
D | stacktest.py | 7 for const in co.co_consts:
|
D | dumppyc.py | 26 for obj in co.co_consts:
|
/external/python/cpython2/Include/ |
D | code.h | 17 PyObject *co_consts; /* list (constants used) */ member
|
/external/python/cpython2/Lib/ |
D | modulefinder.py | 365 consts = co.co_consts 382 consts = co.co_consts 451 for c in co.co_consts: 604 consts = list(co.co_consts)
|
D | dis.py | 95 print '(' + repr(co.co_consts[oparg]) + ')',
|
D | trace.py | 409 for c in code.co_consts:
|
/external/libmojo/third_party/jinja2/ |
D | debug.py | 249 code.co_flags, code.co_code, code.co_consts,
|
/external/python/cpython2/Python/ |
D | marshal.c | 436 w_object(co->co_consts, p); in w_object()
|
D | import.c | 987 constants = co->co_consts; in update_code_filenames()
|
D | ceval.c | 1014 consts = co->co_consts; in PyEval_EvalFrameEx()
|
/external/python/cpython2/Doc/library/ |
D | inspect.rst | 175 | | co_consts | tuple of constants used | |
|
D | dis.rst | 631 Pushes ``co_consts[consti]`` onto the stack.
|
/external/python/cpython2/Doc/reference/ |
D | datamodel.rst | 928 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/ |
D | cheatsheet | 1284 co_consts (tuple, R/O): litterals used by the bytecode, 1st one is
|
D | HISTORY | 64 in the byte code and co_consts even if they were not used, ie
|