• Home
  • Raw
  • Download

Lines Matching full:args

22 code_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)  in code_new()  argument
46 if (!_PyArg_CheckPositional("code", PyTuple_GET_SIZE(args), 14, 16)) { in code_new()
49 argcount = _PyLong_AsInt(PyTuple_GET_ITEM(args, 0)); in code_new()
53 posonlyargcount = _PyLong_AsInt(PyTuple_GET_ITEM(args, 1)); in code_new()
57 kwonlyargcount = _PyLong_AsInt(PyTuple_GET_ITEM(args, 2)); in code_new()
61 nlocals = _PyLong_AsInt(PyTuple_GET_ITEM(args, 3)); in code_new()
65 stacksize = _PyLong_AsInt(PyTuple_GET_ITEM(args, 4)); in code_new()
69 flags = _PyLong_AsInt(PyTuple_GET_ITEM(args, 5)); in code_new()
73 if (!PyBytes_Check(PyTuple_GET_ITEM(args, 6))) { in code_new()
74 _PyArg_BadArgument("code", "argument 7", "bytes", PyTuple_GET_ITEM(args, 6)); in code_new()
77 code = PyTuple_GET_ITEM(args, 6); in code_new()
78 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 7))) { in code_new()
79 _PyArg_BadArgument("code", "argument 8", "tuple", PyTuple_GET_ITEM(args, 7)); in code_new()
82 consts = PyTuple_GET_ITEM(args, 7); in code_new()
83 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 8))) { in code_new()
84 _PyArg_BadArgument("code", "argument 9", "tuple", PyTuple_GET_ITEM(args, 8)); in code_new()
87 names = PyTuple_GET_ITEM(args, 8); in code_new()
88 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 9))) { in code_new()
89 _PyArg_BadArgument("code", "argument 10", "tuple", PyTuple_GET_ITEM(args, 9)); in code_new()
92 varnames = PyTuple_GET_ITEM(args, 9); in code_new()
93 if (!PyUnicode_Check(PyTuple_GET_ITEM(args, 10))) { in code_new()
94 _PyArg_BadArgument("code", "argument 11", "str", PyTuple_GET_ITEM(args, 10)); in code_new()
97 if (PyUnicode_READY(PyTuple_GET_ITEM(args, 10)) == -1) { in code_new()
100 filename = PyTuple_GET_ITEM(args, 10); in code_new()
101 if (!PyUnicode_Check(PyTuple_GET_ITEM(args, 11))) { in code_new()
102 _PyArg_BadArgument("code", "argument 12", "str", PyTuple_GET_ITEM(args, 11)); in code_new()
105 if (PyUnicode_READY(PyTuple_GET_ITEM(args, 11)) == -1) { in code_new()
108 name = PyTuple_GET_ITEM(args, 11); in code_new()
109 firstlineno = _PyLong_AsInt(PyTuple_GET_ITEM(args, 12)); in code_new()
113 if (!PyBytes_Check(PyTuple_GET_ITEM(args, 13))) { in code_new()
114 _PyArg_BadArgument("code", "argument 14", "bytes", PyTuple_GET_ITEM(args, 13)); in code_new()
117 linetable = PyTuple_GET_ITEM(args, 13); in code_new()
118 if (PyTuple_GET_SIZE(args) < 15) { in code_new()
121 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 14))) { in code_new()
122 _PyArg_BadArgument("code", "argument 15", "tuple", PyTuple_GET_ITEM(args, 14)); in code_new()
125 freevars = PyTuple_GET_ITEM(args, 14); in code_new()
126 if (PyTuple_GET_SIZE(args) < 16) { in code_new()
129 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 15))) { in code_new()
130 _PyArg_BadArgument("code", "argument 16", "tuple", PyTuple_GET_ITEM(args, 15)); in code_new()
133 cellvars = PyTuple_GET_ITEM(args, 15); in code_new()
166 code_replace(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in code_replace() argument
190 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 0, 0, argsbuf); in code_replace()
191 if (!args) { in code_replace()
197 if (args[0]) { in code_replace()
198 co_argcount = _PyLong_AsInt(args[0]); in code_replace()
206 if (args[1]) { in code_replace()
207 co_posonlyargcount = _PyLong_AsInt(args[1]); in code_replace()
215 if (args[2]) { in code_replace()
216 co_kwonlyargcount = _PyLong_AsInt(args[2]); in code_replace()
224 if (args[3]) { in code_replace()
225 co_nlocals = _PyLong_AsInt(args[3]); in code_replace()
233 if (args[4]) { in code_replace()
234 co_stacksize = _PyLong_AsInt(args[4]); in code_replace()
242 if (args[5]) { in code_replace()
243 co_flags = _PyLong_AsInt(args[5]); in code_replace()
251 if (args[6]) { in code_replace()
252 co_firstlineno = _PyLong_AsInt(args[6]); in code_replace()
260 if (args[7]) { in code_replace()
261 if (!PyBytes_Check(args[7])) { in code_replace()
262 _PyArg_BadArgument("replace", "argument 'co_code'", "bytes", args[7]); in code_replace()
265 co_code = (PyBytesObject *)args[7]; in code_replace()
270 if (args[8]) { in code_replace()
271 if (!PyTuple_Check(args[8])) { in code_replace()
272 _PyArg_BadArgument("replace", "argument 'co_consts'", "tuple", args[8]); in code_replace()
275 co_consts = args[8]; in code_replace()
280 if (args[9]) { in code_replace()
281 if (!PyTuple_Check(args[9])) { in code_replace()
282 _PyArg_BadArgument("replace", "argument 'co_names'", "tuple", args[9]); in code_replace()
285 co_names = args[9]; in code_replace()
290 if (args[10]) { in code_replace()
291 if (!PyTuple_Check(args[10])) { in code_replace()
292 _PyArg_BadArgument("replace", "argument 'co_varnames'", "tuple", args[10]); in code_replace()
295 co_varnames = args[10]; in code_replace()
300 if (args[11]) { in code_replace()
301 if (!PyTuple_Check(args[11])) { in code_replace()
302 _PyArg_BadArgument("replace", "argument 'co_freevars'", "tuple", args[11]); in code_replace()
305 co_freevars = args[11]; in code_replace()
310 if (args[12]) { in code_replace()
311 if (!PyTuple_Check(args[12])) { in code_replace()
312 _PyArg_BadArgument("replace", "argument 'co_cellvars'", "tuple", args[12]); in code_replace()
315 co_cellvars = args[12]; in code_replace()
320 if (args[13]) { in code_replace()
321 if (!PyUnicode_Check(args[13])) { in code_replace()
322 _PyArg_BadArgument("replace", "argument 'co_filename'", "str", args[13]); in code_replace()
325 if (PyUnicode_READY(args[13]) == -1) { in code_replace()
328 co_filename = args[13]; in code_replace()
333 if (args[14]) { in code_replace()
334 if (!PyUnicode_Check(args[14])) { in code_replace()
335 _PyArg_BadArgument("replace", "argument 'co_name'", "str", args[14]); in code_replace()
338 if (PyUnicode_READY(args[14]) == -1) { in code_replace()
341 co_name = args[14]; in code_replace()
346 if (!PyBytes_Check(args[15])) { in code_replace()
347 _PyArg_BadArgument("replace", "argument 'co_linetable'", "bytes", args[15]); in code_replace()
350 co_linetable = (PyBytesObject *)args[15]; in code_replace()