Home
last modified time | relevance | path

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

/external/python/cpython3/Objects/
Dcodeobject.c120 PyObject *varnames, PyObject *freevars, PyObject *cellvars, in PyCode_NewWithPosOnlyArgs() argument
137 cellvars == NULL || !PyTuple_Check(cellvars) || in PyCode_NewWithPosOnlyArgs()
162 if (intern_strings(cellvars) < 0) { in PyCode_NewWithPosOnlyArgs()
170 n_cellvars = PyTuple_GET_SIZE(cellvars); in PyCode_NewWithPosOnlyArgs()
202 PyObject *cell = PyTuple_GET_ITEM(cellvars, i); in PyCode_NewWithPosOnlyArgs()
245 Py_INCREF(cellvars); in PyCode_NewWithPosOnlyArgs()
246 co->co_cellvars = cellvars; in PyCode_NewWithPosOnlyArgs()
270 PyObject *varnames, PyObject *freevars, PyObject *cellvars, in PyCode_New() argument
276 varnames, freevars, cellvars, filename, in PyCode_New()
459 PyObject *cellvars = NULL, *ourcellvars = NULL; in code_new() local
[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/cpython3/Doc/c-api/
Dcode.rst36 …sts, PyObject *names, PyObject *varnames, PyObject *freevars, PyObject *cellvars, PyObject *filena…
43 …sts, PyObject *names, PyObject *varnames, PyObject *freevars, PyObject *cellvars, PyObject *filena…
/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/cpython2/Doc/c-api/
Dcode.rst36 …sts, PyObject *names, PyObject *varnames, PyObject *freevars, PyObject *cellvars, PyObject *filena…
/external/python/cpython3/Python/
Dmarshal.c1311 PyObject *cellvars = NULL; in r_object() local
1358 cellvars = r_object(p); in r_object()
1359 if (cellvars == NULL) in r_object()
1384 freevars, cellvars, filename, name, in r_object()
1394 Py_XDECREF(cellvars); in r_object()
Dcompile.c5905 PyObject *cellvars = NULL; in makecode() local
5918 cellvars = dict_keys_inorder(c->u->u_cellvars, 0); in makecode()
5919 if (!cellvars) in makecode()
5921 freevars = dict_keys_inorder(c->u->u_freevars, PyTuple_GET_SIZE(cellvars)); in makecode()
5927 !merge_const_tuple(c, &cellvars) || in makecode()
5964 varnames, freevars, cellvars, c->c_filename, in makecode()
5972 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.dat249 PyCode_NewWithPosOnlyArgs:PyObject*:cellvars:0:
266 PyCode_New:PyObject*:cellvars:0: