Home
last modified time | relevance | path

Searched refs:co_cellvars (Results 1 – 13 of 13) sorted by relevance

/external/python/cpython2/Objects/
Dframeobject.c507 …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()
Dcodeobject.c137 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/
Dcode.h21 PyObject *co_cellvars; /* tuple of strings (cell variable names) */ member
/external/python/cpython2/Lib/test/
Dtest_new.py124 cellvars = c.co_cellvars
Dtest_import.py510 code.co_freevars, code.co_cellvars)
Dtest_sys.py634 ncells = len(x.f_code.co_cellvars)
/external/python/cpython2/Lib/
Ddis.py106 free = co.co_cellvars + co.co_freevars
Dmodulefinder.py613 co.co_freevars, co.co_cellvars)
/external/python/cpython2/Doc/library/
Ddis.rst775 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/
Dceval.c2425 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()
Dmarshal.c440 w_object(co->co_cellvars, p); in w_object()
/external/python/cpython2/Doc/reference/
Ddatamodel.rst938 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/
Dcheatsheet1280 co_cellvars (tuple, R/O)) the names of local variables referenced by