/external/python/cpython2/Objects/ |
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() 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()
|
D | frameobject.c | 543 …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/ |
D | frameobject.c | 513 …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()
|
D | codeobject.c | 209 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()
|
D | typeobject.c | 7697 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/ |
D | dis.py | 171 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
|
D | types.py | 265 co.co_cellvars)
|
D | modulefinder.py | 567 co.co_cellvars)
|
/external/python/cpython2/Include/ |
D | code.h | 21 PyObject *co_cellvars; /* tuple of strings (cell variable names) */ member
|
/external/python/cpython3/Include/ |
D | code.h | 34 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 | 509 code.co_freevars, code.co_cellvars)
|
D | test_sys.py | 645 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)
|
D | inspect.py | 783 stack.append(co.co_cellvars[value])
|
/external/python/cpython3/Lib/test/ |
D | test_code.py | 163 c.co_lnotab, c.co_freevars + ('__class__',), c.co_cellvars)
|
D | test_sys.py | 1023 ncells = len(x.f_code.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/cpython3/Python/ |
D | ceval.c | 2190 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()
|
D | marshal.c | 561 w_object(co->co_cellvars, p); in w_complex_object()
|
/external/python/cpython2/Python/ |
D | ceval.c | 2437 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()
|
D | marshal.c | 440 w_object(co->co_cellvars, p); in w_object()
|
/external/python/cpython3/Doc/library/ |
D | dis.rst | 1026 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__.py | 613 code.co_freevars, code.co_cellvars)
|