/third_party/python/Objects/clinic/ |
H A D | codeobject.c.h | 164 " 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 D | debug.py | 139 code.co_cellvars,
|
/third_party/python/Tools/scripts/ |
H A D | deepfreeze.py | 52 for name in code.co_cellvars: 79 assert ncellvars == len(code.co_cellvars)
|
H A D | umarshal.py | 74 def co_cellvars(self) -> Tuple[str, ...]: member in Code
|
/third_party/python/Lib/test/ |
H A D | test_code.py | 241 co.co_cellvars) 275 ("co_cellvars", ("cellvar",)), 318 co.co_cellvars,
|
H A D | test_future.py | 388 self.assertEqual(foo.__code__.co_cellvars, ())
|
/third_party/python/Lib/ |
H A D | dis.py | 220 if co.co_cellvars: 222 for i_n in enumerate(co.co_cellvars):
|
/third_party/python/Objects/ |
H A D | codeobject.c | 1850 {"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.c | 6260 /* 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...] |