Home
last modified time | relevance | path

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

/third_party/python/Objects/clinic/
Dcodeobject.c.h162 PyObject *co_cellvars, PyObject *co_filename,
185 PyObject *co_cellvars = self->co_cellvars; in code_replace() local
315 co_cellvars = args[12]; in code_replace()
352 …o_firstlineno, co_code, co_consts, co_names, co_varnames, co_freevars, co_cellvars, co_filename, c… in code_replace()
/third_party/python/Objects/
Dcodeobject.c254 co->co_cellvars = cellvars; in PyCode_NewWithPosOnlyArgs()
395 {"co_cellvars", T_OBJECT, OFF(co_cellvars), READONLY},
662 Py_XDECREF(co->co_cellvars); in code_dealloc()
681 if (co->co_cell2arg != NULL && co->co_cellvars != NULL) { in code_sizeof()
682 res += PyTuple_GET_SIZE(co->co_cellvars) * sizeof(Py_ssize_t); in code_sizeof()
729 PyObject *co_cellvars, PyObject *co_filename, in code_replace_impl() argument
760 co_varnames, co_freevars, co_cellvars, co_filename, co_name, in code_replace_impl()
967 eq = PyObject_RichCompareBool(co->co_cellvars, cp->co_cellvars, Py_EQ); in code_richcompare()
1005 h6 = PyObject_Hash(co->co_cellvars); in code_hash()
Dframeobject.c632 + PyTuple_GET_SIZE(code->co_cellvars) in frame_nslots()
710 ncells = PyTuple_GET_SIZE(code->co_cellvars); in frame_sizeof()
788 Py_ssize_t ncells = PyTuple_GET_SIZE(code->co_cellvars); in frame_alloc()
1048 ncells = PyTuple_GET_SIZE(co->co_cellvars); in PyFrame_FastToLocalsWithError()
1051 if (map_to_dict(co->co_cellvars, ncells, in PyFrame_FastToLocalsWithError()
1110 ncells = PyTuple_GET_SIZE(co->co_cellvars); in PyFrame_LocalsToFast()
1113 dict_to_map(co->co_cellvars, ncells, in PyFrame_LocalsToFast()
Dtypeobject.c8872 n = PyTuple_GET_SIZE(co->co_cellvars); in super_init_without_args()
8902 PyTuple_GET_SIZE(co->co_cellvars) + i; in super_init_without_args()
/third_party/python/Lib/
Ddis.py181 if co.co_cellvars:
183 for i_n in enumerate(co.co_cellvars):
273 cell_names = co.co_cellvars + co.co_freevars
370 cell_names = co.co_cellvars + co.co_freevars
482 self._cell_names = co.co_cellvars + co.co_freevars
/third_party/python/Include/cpython/
Dcode.h32 PyObject *co_cellvars; /* tuple of strings (cell variable names) */ member
/third_party/jinja2/
Ddebug.py139 code.co_cellvars,
/third_party/python/Lib/test/
Dtest_future.py372 self.assertEqual(foo.__code__.co_cellvars, ())
Dtest_code.py231 co.co_cellvars)
Dtest_sys.py1298 ncells = len(x.f_code.co_cellvars)
/third_party/python/Python/
Dceval.c3081 assert(oparg >= PyTuple_GET_SIZE(co->co_cellvars)); in _PyEval_EvalFrameDefault()
3082 idx = oparg - PyTuple_GET_SIZE(co->co_cellvars); in _PyEval_EvalFrameDefault()
4976 for (i = 0; i < PyTuple_GET_SIZE(co->co_cellvars); ++i) { in _PyEval_MakeFrameVector()
4998 freevars[PyTuple_GET_SIZE(co->co_cellvars) + i] = o; in _PyEval_MakeFrameVector()
6279 if (oparg < PyTuple_GET_SIZE(co->co_cellvars)) { in format_exc_unbound()
6280 name = PyTuple_GET_ITEM(co->co_cellvars, in format_exc_unbound()
6288 PyTuple_GET_SIZE(co->co_cellvars)); in format_exc_unbound()
Dmarshal.c523 w_object(co->co_cellvars, p); in w_complex_object()
/third_party/python/Doc/library/
Ddis.rst1069 variable storage. The name of the variable is ``co_cellvars[i]`` if *i* is
1070 less than the length of *co_cellvars*. Otherwise it is ``co_freevars[i -
1071 len(co_cellvars)]``.
Dinspect.rst154 | | co_cellvars | tuple of names of cell |
/third_party/python/Doc/reference/
Ddatamodel.rst971 single: co_cellvars (code object attribute)
983 :attr:`co_cellvars` is a tuple containing the names of local variables