Searched refs:co_cellvars (Results 1 – 13 of 13) sorted by relevance
/external/python/cpython2/Objects/ |
D | frameobject.c | 507 …slots = f->f_code->co_nlocals + PyTuple_GET_SIZE(f->f_code->co_cellvars) + PyTuple_GET_SIZE(f->f_c… in frame_traverse() 540 …slots = f->f_code->co_nlocals + PyTuple_GET_SIZE(f->f_code->co_cellvars) + PyTuple_GET_SIZE(f->f_c… in frame_clear() 557 ncells = PyTuple_GET_SIZE(f->f_code->co_cellvars); in frame_sizeof() 675 ncells = PyTuple_GET_SIZE(code->co_cellvars); in PyFrame_New() 897 ncells = PyTuple_GET_SIZE(co->co_cellvars); in PyFrame_FastToLocals() 900 map_to_dict(co->co_cellvars, ncells, in PyFrame_FastToLocals() 944 ncells = PyTuple_GET_SIZE(co->co_cellvars); in PyFrame_LocalsToFast() 947 dict_to_map(co->co_cellvars, ncells, in PyFrame_LocalsToFast()
|
D | codeobject.c | 137 co->co_cellvars = cellvars; in PyCode_New() 210 {"co_cellvars", T_OBJECT, OFF(co_cellvars), READONLY}, 352 Py_XDECREF(co->co_cellvars); in code_dealloc() 407 cmp = PyObject_Compare(co->co_cellvars, cp->co_cellvars); in code_compare() 606 eq = PyObject_RichCompareBool(co->co_cellvars, cp->co_cellvars, Py_EQ); in code_richcompare() 644 h6 = PyObject_Hash(co->co_cellvars); in code_hash()
|
/external/python/cpython2/Include/ |
D | code.h | 21 PyObject *co_cellvars; /* tuple of strings (cell variable names) */ member
|
/external/python/cpython2/Lib/test/ |
D | test_new.py | 124 cellvars = c.co_cellvars
|
D | test_import.py | 510 code.co_freevars, code.co_cellvars)
|
D | test_sys.py | 634 ncells = len(x.f_code.co_cellvars)
|
/external/python/cpython2/Lib/ |
D | dis.py | 106 free = co.co_cellvars + co.co_freevars
|
D | modulefinder.py | 613 co.co_freevars, co.co_cellvars)
|
/external/python/cpython2/Doc/library/ |
D | dis.rst | 775 variable storage. The name of the variable is ``co_cellvars[i]`` if *i* is 776 less than the length of *co_cellvars*. Otherwise it is ``co_freevars[i - 777 len(co_cellvars)]``.
|
/external/python/cpython2/Python/ |
D | ceval.c | 2425 if (oparg < PyTuple_GET_SIZE(co->co_cellvars)) { in PyEval_EvalFrameEx() 2426 v = PyTuple_GET_ITEM(co->co_cellvars, in PyEval_EvalFrameEx() 2434 PyTuple_GET_SIZE(co->co_cellvars)); in PyEval_EvalFrameEx() 3521 if (PyTuple_GET_SIZE(co->co_cellvars)) { in PyEval_EvalCodeEx() 3539 for (i = 0; i < PyTuple_GET_SIZE(co->co_cellvars); ++i) { in PyEval_EvalCodeEx() 3541 PyTuple_GET_ITEM(co->co_cellvars, i)); in PyEval_EvalCodeEx() 3568 freevars[PyTuple_GET_SIZE(co->co_cellvars) + i] = o; in PyEval_EvalCodeEx()
|
D | marshal.c | 440 w_object(co->co_cellvars, p); in w_object()
|
/external/python/cpython2/Doc/reference/ |
D | datamodel.rst | 938 single: co_cellvars (code object attribute) 946 :attr:`co_cellvars` is a tuple containing the names of local variables that are
|
/external/python/cpython2/Misc/ |
D | cheatsheet | 1280 co_cellvars (tuple, R/O)) the names of local variables referenced by
|