Home
last modified time | relevance | path

Searched refs:varnames (Results 1 - 6 of 6) sorted by relevance

/third_party/python/Python/
H A Dsuggestions.c227 PyObject *varnames = _PyCode_GetVarnames(code); in offer_suggestions_for_name_error() local
228 if (varnames == NULL) { in offer_suggestions_for_name_error()
231 PyObject *dir = PySequence_List(varnames); in offer_suggestions_for_name_error()
232 Py_DECREF(varnames); in offer_suggestions_for_name_error()
H A Dcompile.c4315 ADDOP_N(c, op, mangled, varnames); in compiler_nameop()
/third_party/python/Objects/
H A Dcodeobject.c501 PyObject *varnames, PyObject *freevars, PyObject *cellvars, in PyCode_NewWithPosOnlyArgs()
511 if (varnames == NULL || !PyTuple_Check(varnames) || in PyCode_NewWithPosOnlyArgs()
520 int nvarnames = (int)PyTuple_GET_SIZE(varnames); in PyCode_NewWithPosOnlyArgs()
534 PyObject *name = PyTuple_GET_ITEM(varnames, i); in PyCode_NewWithPosOnlyArgs()
542 int cmp = PyUnicode_Compare(PyTuple_GET_ITEM(varnames, j), in PyCode_NewWithPosOnlyArgs()
604 if (nlocals != PyTuple_GET_SIZE(varnames)) { in PyCode_NewWithPosOnlyArgs()
625 PyObject *varnames, PyObject *freevars, PyObject *cellvars, in PyCode_New()
633 varnames, freevars, cellvars, filename, in PyCode_New()
1507 varnames
498 PyCode_NewWithPosOnlyArgs(int argcount, int posonlyargcount, int kwonlyargcount, int nlocals, int stacksize, int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *freevars, PyObject *cellvars, PyObject *filename, PyObject *name, PyObject *qualname, int firstlineno, PyObject *linetable, PyObject *exceptiontable) PyCode_NewWithPosOnlyArgs() argument
622 PyCode_New(int argcount, int kwonlyargcount, int nlocals, int stacksize, int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *freevars, PyObject *cellvars, PyObject *filename, PyObject *name, PyObject *qualname, int firstlineno, PyObject *linetable, PyObject *exceptiontable) PyCode_New() argument
1522 code_new_impl(PyTypeObject *type, int argcount, int posonlyargcount, int kwonlyargcount, int nlocals, int stacksize, int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *filename, PyObject *name, PyObject *qualname, int firstlineno, PyObject *linetable, PyObject *exceptiontable, PyObject *freevars, PyObject *cellvars) code_new_impl() argument
1950 PyObject *varnames = NULL; code_replace_impl() local
[all...]
/third_party/python/Objects/clinic/
H A Dcodeobject.c.h7 " flags, codestring, constants, names, varnames, filename, name,\n"
18 PyObject *varnames, PyObject *filename, PyObject *name,
36 PyObject *varnames; in code_new() local
97 varnames = PyTuple_GET_ITEM(args, 9); in code_new()
153 return_value = code_new_impl(type, argcount, posonlyargcount, kwonlyargcount, nlocals, stacksize, flags, code, consts, names, varnames, filename, name, qualname, firstlineno, linetable, exceptiontable, freevars, cellvars); in code_new()
/third_party/python/Tools/scripts/
H A Dumarshal.py62 varnames: list[str] = []
66 varnames.append(name)
67 return tuple(varnames)
/third_party/python/Lib/test/
H A Dtest_scope.py550 varnames = f(1).z
551 self.assertNotIn("x", varnames)
552 self.assertIn("y", varnames)

Completed in 17 milliseconds