Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dcodeobject.c100 PyObject *varnames, PyObject *freevars, PyObject *cellvars, in PyCode_New() argument
115 cellvars == NULL || !PyTuple_Check(cellvars) || in PyCode_New()
130 intern_strings(cellvars); in PyCode_New()
134 n_cellvars = PyTuple_GET_SIZE(cellvars); in PyCode_New()
166 PyObject *cell = PyTuple_GET_ITEM(cellvars, i); in PyCode_New()
208 Py_INCREF(cellvars); in PyCode_New()
209 co->co_cellvars = cellvars; in PyCode_New()
356 PyObject *cellvars = NULL, *ourcellvars = NULL; in code_new() local
372 &PyTuple_Type, &cellvars)) in code_new()
407 if (cellvars) in code_new()
[all …]
/external/python/cpython2/Objects/
Dcodeobject.c95 PyObject *varnames, PyObject *freevars, PyObject *cellvars, in PyCode_New() argument
107 cellvars == NULL || !PyTuple_Check(cellvars) || in PyCode_New()
118 intern_strings(cellvars); in PyCode_New()
136 Py_INCREF(cellvars); in PyCode_New()
137 co->co_cellvars = cellvars; in PyCode_New()
281 PyObject *cellvars = NULL, *ourcellvars = NULL; in code_new() local
296 &PyTuple_Type, &cellvars)) in code_new()
325 if (cellvars) in code_new()
326 ourcellvars = validate_and_copy_tuple(cellvars); in code_new()
/external/python/cpython2/Lib/compiler/
Dpyassem.py274 self.cellvars = []
303 self.cellvars = names
423 for name in self.cellvars:
425 self.cellvars = [name for name in self.varnames
427 for name in self.cellvars:
429 self.cellvars = self.cellvars + cells.keys()
430 self.closure = self.cellvars + self.freevars
544 tuple(self.cellvars))
/external/python/cpython2/Lib/test/
Dtest_new.py124 cellvars = c.co_cellvars
128 firstlineno, lnotab, freevars, cellvars)
/external/python/cpython2/Python/
Dmarshal.c1014 PyObject *cellvars = NULL; in r_object() local
1042 cellvars = r_object(p); in r_object()
1043 if (cellvars == NULL) in r_object()
1059 freevars, cellvars, filename, name, in r_object()
1068 Py_XDECREF(cellvars); in r_object()
Dcompile.c3815 PyObject *cellvars = NULL; in makecode() local
3830 cellvars = dict_keys_inorder(c->u->u_cellvars, 0); in makecode()
3831 if (!cellvars) in makecode()
3833 freevars = dict_keys_inorder(c->u->u_freevars, PyTuple_Size(cellvars)); in makecode()
3857 freevars, cellvars, in makecode()
3868 Py_XDECREF(cellvars); in makecode()
/external/python/cpython3/Doc/c-api/
Dcode.rst36 …sts, PyObject *names, PyObject *varnames, PyObject *freevars, PyObject *cellvars, PyObject *filena…
/external/python/cpython2/Doc/c-api/
Dcode.rst36 …sts, PyObject *names, PyObject *varnames, PyObject *freevars, PyObject *cellvars, PyObject *filena…
/external/python/cpython3/Python/
Dmarshal.c1371 PyObject *cellvars = NULL; in r_object() local
1414 cellvars = r_object(p); in r_object()
1415 if (cellvars == NULL) in r_object()
1434 freevars, cellvars, filename, name, in r_object()
1444 Py_XDECREF(cellvars); in r_object()
Dcompile.c5377 PyObject *cellvars = NULL; in makecode() local
5395 cellvars = dict_keys_inorder(c->u->u_cellvars, 0); in makecode()
5396 if (!cellvars) in makecode()
5398 freevars = dict_keys_inorder(c->u->u_freevars, PyTuple_Size(cellvars)); in makecode()
5429 freevars, cellvars, in makecode()
5439 Py_XDECREF(cellvars); in makecode()
/external/python/cpython3/Misc/NEWS.d/
D3.6.4rc1.rst8 constructor based on freevars and cellvars, rather than needing to be set
D3.7.0a3.rst8 constructor based on freevars and cellvars, rather than needing to be set
/external/python/cpython3/Doc/data/
Drefcounts.dat248 PyCode_New:PyObject*:cellvars:0: