Home
last modified time | relevance | path

Searched refs:co_cellvars (Results 1 - 9 of 9) sorted by relevance

/third_party/python/Objects/clinic/
H A Dcodeobject.c.h164 " co_cellvars=None, co_filename=None, co_name=None,\n"
180 PyObject *co_cellvars, PyObject *co_filename,
189 static const char * const _keywords[] = {"co_argcount", "co_posonlyargcount", "co_kwonlyargcount", "co_nlocals", "co_stacksize", "co_flags", "co_firstlineno", "co_code", "co_consts", "co_names", "co_varnames", "co_freevars", "co_cellvars", "co_filename", "co_name", "co_qualname", "co_linetable", "co_exceptiontable", NULL}; in code_replace()
205 PyObject *co_cellvars = NULL; in code_replace() local
334 _PyArg_BadArgument("replace", "argument 'co_cellvars'", "tuple", args[12]); in code_replace()
337 co_cellvars = args[12]; in code_replace()
397 return_value = code_replace_impl(self, co_argcount, co_posonlyargcount, co_kwonlyargcount, co_nlocals, co_stacksize, co_flags, co_firstlineno, co_code, co_consts, co_names, co_varnames, co_freevars, co_cellvars, co_filename, co_name, co_qualname, co_linetable, co_exceptiontable); in code_replace()
/third_party/jinja2/
H A Ddebug.py139 code.co_cellvars,
/third_party/python/Tools/scripts/
H A Ddeepfreeze.py52 for name in code.co_cellvars:
79 assert ncellvars == len(code.co_cellvars)
H A Dumarshal.py74 def co_cellvars(self) -> Tuple[str, ...]: member in Code
/third_party/python/Lib/test/
H A Dtest_code.py241 co.co_cellvars)
275 ("co_cellvars", ("cellvar",)),
318 co.co_cellvars,
H A Dtest_future.py388 self.assertEqual(foo.__code__.co_cellvars, ())
/third_party/python/Lib/
H A Ddis.py220 if co.co_cellvars:
222 for i_n in enumerate(co.co_cellvars):
/third_party/python/Objects/
H A Dcodeobject.c1850 {"co_cellvars", (getter)code_getcellvars, NULL, NULL},
1893 co_cellvars: object(subclass_of="&PyTuple_Type", c_default="NULL") = None
1910 PyObject *co_cellvars, PyObject *co_filename, in code_replace_impl()
1960 if (co_cellvars == NULL) { in code_replace_impl()
1965 co_cellvars = cellvars; in code_replace_impl()
1978 co_varnames, co_freevars, co_cellvars, co_filename, co_name, in code_replace_impl()
1904 code_replace_impl(PyCodeObject *self, int co_argcount, int co_posonlyargcount, int co_kwonlyargcount, int co_nlocals, int co_stacksize, int co_flags, int co_firstlineno, PyBytesObject *co_code, PyObject *co_consts, PyObject *co_names, PyObject *co_varnames, PyObject *co_freevars, PyObject *co_cellvars, PyObject *co_filename, PyObject *co_name, PyObject *co_qualname, PyBytesObject *co_linetable, PyBytesObject *co_exceptiontable) code_replace_impl() argument
/third_party/python/Modules/
H A D_testcapimodule.c6260 /* co_cellvars */ in test_code_api()
6262 PyObject *co_cellvars = PyCode_GetCellvars(co); in test_code_api() local
6263 if (co_cellvars == NULL) { in test_code_api()
6266 if (!PyTuple_CheckExact(co_cellvars)) { in test_code_api()
6267 PyErr_SetString(PyExc_TypeError, "co_cellvars not tuple"); in test_code_api()
6268 Py_DECREF(co_cellvars); in test_code_api()
6271 if (PyTuple_GET_SIZE(co_cellvars) != 0) { in test_code_api()
6272 PyErr_SetString(PyExc_ValueError, "non-empty co_cellvars"); in test_code_api()
6273 Py_DECREF(co_cellvars); in test_code_api()
6276 Py_DECREF(co_cellvars); in test_code_api()
[all...]

Completed in 17 milliseconds