Home
last modified time | relevance | path

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

12

/external/python/cpython2/Objects/
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()
605 eq = PyObject_RichCompareBool(co->co_cellvars, cp->co_cellvars, Py_EQ); in code_richcompare()
643 h6 = PyObject_Hash(co->co_cellvars); in code_hash()
Dframeobject.c543 …slots = f->f_code->co_nlocals + PyTuple_GET_SIZE(f->f_code->co_cellvars) + PyTuple_GET_SIZE(f->f_c… in frame_traverse()
576 …slots = f->f_code->co_nlocals + PyTuple_GET_SIZE(f->f_code->co_cellvars) + PyTuple_GET_SIZE(f->f_c… in frame_clear()
593 ncells = PyTuple_GET_SIZE(f->f_code->co_cellvars); in frame_sizeof()
711 ncells = PyTuple_GET_SIZE(code->co_cellvars); in PyFrame_New()
933 ncells = PyTuple_GET_SIZE(co->co_cellvars); in PyFrame_FastToLocals()
936 map_to_dict(co->co_cellvars, ncells, in PyFrame_FastToLocals()
980 ncells = PyTuple_GET_SIZE(co->co_cellvars); in PyFrame_LocalsToFast()
983 dict_to_map(co->co_cellvars, ncells, in PyFrame_LocalsToFast()
/external/python/cpython3/Objects/
Dframeobject.c513 …slots = f->f_code->co_nlocals + PyTuple_GET_SIZE(f->f_code->co_cellvars) + PyTuple_GET_SIZE(f->f_c… in frame_traverse()
544 …slots = f->f_code->co_nlocals + PyTuple_GET_SIZE(f->f_code->co_cellvars) + PyTuple_GET_SIZE(f->f_c… in frame_tp_clear()
581 ncells = PyTuple_GET_SIZE(f->f_code->co_cellvars); in frame_sizeof()
708 ncells = PyTuple_GET_SIZE(code->co_cellvars); in _PyFrame_New_NoTrack()
951 ncells = PyTuple_GET_SIZE(co->co_cellvars); in PyFrame_FastToLocalsWithError()
954 if (map_to_dict(co->co_cellvars, ncells, in PyFrame_FastToLocalsWithError()
1013 ncells = PyTuple_GET_SIZE(co->co_cellvars); in PyFrame_LocalsToFast()
1016 dict_to_map(co->co_cellvars, ncells, in PyFrame_LocalsToFast()
Dcodeobject.c209 co->co_cellvars = cellvars; in PyCode_New()
285 {"co_cellvars", T_OBJECT, OFF(co_cellvars), READONLY},
450 Py_XDECREF(co->co_cellvars); in code_dealloc()
469 if (co->co_cell2arg != NULL && co->co_cellvars != NULL) { in code_sizeof()
470 res += PyTuple_GET_SIZE(co->co_cellvars) * sizeof(Py_ssize_t); in code_sizeof()
673 eq = PyObject_RichCompareBool(co->co_cellvars, cp->co_cellvars, Py_EQ); in code_richcompare()
711 h6 = PyObject_Hash(co->co_cellvars); in code_hash()
Dtypeobject.c7697 n = PyTuple_GET_SIZE(co->co_cellvars); in super_init()
7723 PyTuple_GET_SIZE(co->co_cellvars) + i; in super_init()
/external/python/cpython3/Lib/
Ddis.py171 if co.co_cellvars:
173 for i_n in enumerate(co.co_cellvars):
263 cell_names = co.co_cellvars + co.co_freevars
354 cell_names = co.co_cellvars + co.co_freevars
477 self._cell_names = co.co_cellvars + co.co_freevars
Dtypes.py265 co.co_cellvars)
Dmodulefinder.py567 co.co_cellvars)
/external/python/cpython2/Include/
Dcode.h21 PyObject *co_cellvars; /* tuple of strings (cell variable names) */ member
/external/python/cpython3/Include/
Dcode.h34 PyObject *co_cellvars; /* tuple of strings (cell variable names) */ member
/external/python/cpython2/Lib/test/
Dtest_new.py124 cellvars = c.co_cellvars
Dtest_import.py509 code.co_freevars, code.co_cellvars)
Dtest_sys.py645 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)
Dinspect.py783 stack.append(co.co_cellvars[value])
/external/python/cpython3/Lib/test/
Dtest_code.py163 c.co_lnotab, c.co_freevars + ('__class__',), c.co_cellvars)
Dtest_sys.py1023 ncells = len(x.f_code.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/cpython3/Python/
Dceval.c2190 assert(oparg >= PyTuple_GET_SIZE(co->co_cellvars)); in _PyEval_EvalFrameDefault()
2191 idx = oparg - PyTuple_GET_SIZE(co->co_cellvars); in _PyEval_EvalFrameDefault()
3859 for (i = 0; i < PyTuple_GET_SIZE(co->co_cellvars); ++i) { in _PyEval_EvalCodeWithName()
3881 freevars[PyTuple_GET_SIZE(co->co_cellvars) + i] = o; in _PyEval_EvalCodeWithName()
4972 if (oparg < PyTuple_GET_SIZE(co->co_cellvars)) { in format_exc_unbound()
4973 name = PyTuple_GET_ITEM(co->co_cellvars, in format_exc_unbound()
4981 PyTuple_GET_SIZE(co->co_cellvars)); in format_exc_unbound()
Dmarshal.c561 w_object(co->co_cellvars, p); in w_complex_object()
/external/python/cpython2/Python/
Dceval.c2437 if (oparg < PyTuple_GET_SIZE(co->co_cellvars)) { in PyEval_EvalFrameEx()
2438 v = PyTuple_GET_ITEM(co->co_cellvars, in PyEval_EvalFrameEx()
2446 PyTuple_GET_SIZE(co->co_cellvars)); in PyEval_EvalFrameEx()
3541 if (PyTuple_GET_SIZE(co->co_cellvars)) { in PyEval_EvalCodeEx()
3559 for (i = 0; i < PyTuple_GET_SIZE(co->co_cellvars); ++i) { in PyEval_EvalCodeEx()
3561 PyTuple_GET_ITEM(co->co_cellvars, i)); in PyEval_EvalCodeEx()
3588 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/cpython3/Doc/library/
Ddis.rst1026 variable storage. The name of the variable is ``co_cellvars[i]`` if *i* is
1027 less than the length of *co_cellvars*. Otherwise it is ``co_freevars[i -
1028 len(co_cellvars)]``.
/external/python/cpython3/Lib/test/test_import/
D__init__.py613 code.co_freevars, code.co_cellvars)

12