Home
last modified time | relevance | path

Searched refs:co_varnames (Results 1 – 24 of 24) sorted by relevance

/third_party/python/Objects/clinic/
Dcodeobject.c.h161 PyObject *co_varnames, PyObject *co_freevars,
183 PyObject *co_varnames = self->co_varnames; in code_replace() local
295 co_varnames = args[10]; in code_replace()
352 … co_stacksize, co_flags, co_firstlineno, co_code, co_consts, co_names, co_varnames, co_freevars, c… in code_replace()
/third_party/python/Lib/lib2to3/tests/data/
Dpy2_test_grammar.py157 self.assertEquals(f2.func_code.co_varnames, ('one_argument',))
158 self.assertEquals(f3.func_code.co_varnames, ('two', 'arguments'))
160 self.assertEquals(f4.func_code.co_varnames,
163 self.assertEquals(f5.func_code.co_varnames,
166 self.assertEquals(f4.func_code.co_varnames,
168 self.assertEquals(f5.func_code.co_varnames,
204 self.assertEquals(v3.func_code.co_varnames, ('a', '(b, c)', 'rest', 'b', 'c'))
206 self.assertEquals(v3.func_code.co_varnames, ('a', '.1', 'rest', 'b', 'c'))
Dpy3_test_grammar.py192 self.assertEquals(f2.__code__.co_varnames, ('one_argument',))
193 self.assertEquals(f3.__code__.co_varnames, ('two', 'arguments'))
/third_party/python/Lib/
Ddis.py173 if co.co_varnames:
175 for i_n in enumerate(co.co_varnames):
279 return _get_instructions_bytes(co.co_code, co.co_varnames, co.co_names,
372 _disassemble_bytes(co.co_code, lasti, co.co_varnames, co.co_names,
489 return _get_instructions_bytes(co.co_code, co.co_varnames, co.co_names,
517 _disassemble_bytes(co.co_code, varnames=co.co_varnames,
Dinspect.py1200 names = co.co_varnames
1210 varargs = co.co_varnames[nargs]
1214 varkw = co.co_varnames[nargs]
2298 arg_names = func_code.co_varnames
Dpdb.py1147 name = co.co_varnames[i]
Dtyping.py1734 arg_names = code.co_varnames
/third_party/python/Objects/
Dcodeobject.c250 co->co_varnames = varnames; in PyCode_NewWithPosOnlyArgs()
393 {"co_varnames", T_OBJECT, OFF(co_varnames), READONLY},
660 Py_XDECREF(co->co_varnames); in code_dealloc()
728 PyObject *co_varnames, PyObject *co_freevars, in code_replace_impl() argument
760 co_varnames, co_freevars, co_cellvars, co_filename, co_name, in code_replace_impl()
963 eq = PyObject_RichCompareBool(co->co_varnames, cp->co_varnames, Py_EQ); in code_richcompare()
1001 h4 = PyObject_Hash(co->co_varnames); in code_hash()
Dframeobject.c1033 map = co->co_varnames; in PyFrame_FastToLocalsWithError()
1098 map = co->co_varnames; in PyFrame_LocalsToFast()
1109 dict_to_map(co->co_varnames, j, locals, fast, 0, clear); in PyFrame_LocalsToFast()
/third_party/python/Python/
Dsuggestions.c223 assert(code != NULL && code->co_varnames != NULL); in offer_suggestions_for_name_error()
224 PyObject *dir = PySequence_List(code->co_varnames); in offer_suggestions_for_name_error()
Dceval.c1863 PyTuple_GetItem(co->co_varnames, oparg)); in _PyEval_EvalFrameDefault()
3053 PyTuple_GetItem(co->co_varnames, oparg) in _PyEval_EvalFrameDefault()
4642 PyObject *raw = PyTuple_GET_ITEM(co->co_varnames, i); in missing_arguments()
4723 PyObject* posonly_name = PyTuple_GET_ITEM(co->co_varnames, k); in positional_only_passed_as_keyword()
4841 PyObject **co_varnames; in _PyEval_MakeFrameVector() local
4855 co_varnames = ((PyTupleObject *)(co->co_varnames))->ob_item; in _PyEval_MakeFrameVector()
4857 PyObject *varname = co_varnames[j]; in _PyEval_MakeFrameVector()
4865 PyObject *varname = co_varnames[j]; in _PyEval_MakeFrameVector()
4953 PyObject *varname = PyTuple_GET_ITEM(co->co_varnames, i); in _PyEval_MakeFrameVector()
Dmarshal.c521 w_object(co->co_varnames, p); in w_complex_object()
/third_party/node/tools/inspector_protocol/jinja2/
Ddebug.py274 code.co_names, code.co_varnames, filename,
281 code.co_names, code.co_varnames, filename,
/third_party/python/Lib/test/
Dtest_code.py225 co.co_varnames,
256 ("co_varnames", code2.co_varnames),
Dtest_compile.py421 self.assertIn("_A__mangled", A.f.__code__.co_varnames)
422 self.assertIn("__not_mangled__", A.f.__code__.co_varnames)
423 self.assertIn("_A__mangled_mod", A.f.__code__.co_varnames)
424 self.assertIn("__package__", A.f.__code__.co_varnames)
Dtest_grammar.py571 self.assertEqual(f2.__code__.co_varnames, ('one_argument',))
572 self.assertEqual(f3.__code__.co_varnames, ('two', 'arguments'))
/third_party/python/Include/cpython/
Dcode.h30 PyObject *co_varnames; /* tuple of strings (local variable names) */ member
/third_party/mindspore/mindspore/nn/probability/transforms/
Dtransform_bnn.py230 params = optimizer.__init__.__code__.co_varnames
/third_party/python/Misc/
Dgdbinit42 set $_names = f->f_code->co_varnames
/third_party/python/Tools/gdb/
Dlibpython.py872 self.co_varnames = PyTupleObjectPtr.from_pyobject_ptr(self.co.field('co_varnames'))
886 pyop_name = PyObjectPtr.from_pyobject_ptr(self.co_varnames[i])
/third_party/python/Doc/library/
Ddis.rst1053 Pushes a reference to the local ``co_varnames[var_num]`` onto the stack.
1058 Stores TOS into the local ``co_varnames[var_num]``.
1063 Deletes local ``co_varnames[var_num]``.
Dinspect.rst198 | | co_varnames | tuple of names of |
/third_party/mindspore/mindspore/nn/
Dcell.py650 self._construct_inputs_names = fn.__code__.co_varnames
/third_party/python/Doc/reference/
Ddatamodel.rst970 single: co_varnames (code object attribute)
981 function (including arguments); :attr:`co_varnames` is a tuple containing