• Home
  • Raw
  • Download

Lines Matching full:args

24 code_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)  in code_new()  argument
51 if (!_PyArg_CheckPositional("code", PyTuple_GET_SIZE(args), 16, 18)) { in code_new()
54 argcount = _PyLong_AsInt(PyTuple_GET_ITEM(args, 0)); in code_new()
58 posonlyargcount = _PyLong_AsInt(PyTuple_GET_ITEM(args, 1)); in code_new()
62 kwonlyargcount = _PyLong_AsInt(PyTuple_GET_ITEM(args, 2)); in code_new()
66 nlocals = _PyLong_AsInt(PyTuple_GET_ITEM(args, 3)); in code_new()
70 stacksize = _PyLong_AsInt(PyTuple_GET_ITEM(args, 4)); in code_new()
74 flags = _PyLong_AsInt(PyTuple_GET_ITEM(args, 5)); in code_new()
78 if (!PyBytes_Check(PyTuple_GET_ITEM(args, 6))) { in code_new()
79 _PyArg_BadArgument("code", "argument 7", "bytes", PyTuple_GET_ITEM(args, 6)); in code_new()
82 code = PyTuple_GET_ITEM(args, 6); in code_new()
83 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 7))) { in code_new()
84 _PyArg_BadArgument("code", "argument 8", "tuple", PyTuple_GET_ITEM(args, 7)); in code_new()
87 consts = PyTuple_GET_ITEM(args, 7); in code_new()
88 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 8))) { in code_new()
89 _PyArg_BadArgument("code", "argument 9", "tuple", PyTuple_GET_ITEM(args, 8)); in code_new()
92 names = PyTuple_GET_ITEM(args, 8); in code_new()
93 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 9))) { in code_new()
94 _PyArg_BadArgument("code", "argument 10", "tuple", PyTuple_GET_ITEM(args, 9)); in code_new()
97 varnames = PyTuple_GET_ITEM(args, 9); in code_new()
98 if (!PyUnicode_Check(PyTuple_GET_ITEM(args, 10))) { in code_new()
99 _PyArg_BadArgument("code", "argument 11", "str", PyTuple_GET_ITEM(args, 10)); in code_new()
102 if (PyUnicode_READY(PyTuple_GET_ITEM(args, 10)) == -1) { in code_new()
105 filename = PyTuple_GET_ITEM(args, 10); in code_new()
106 if (!PyUnicode_Check(PyTuple_GET_ITEM(args, 11))) { in code_new()
107 _PyArg_BadArgument("code", "argument 12", "str", PyTuple_GET_ITEM(args, 11)); in code_new()
110 if (PyUnicode_READY(PyTuple_GET_ITEM(args, 11)) == -1) { in code_new()
113 name = PyTuple_GET_ITEM(args, 11); in code_new()
114 if (!PyUnicode_Check(PyTuple_GET_ITEM(args, 12))) { in code_new()
115 _PyArg_BadArgument("code", "argument 13", "str", PyTuple_GET_ITEM(args, 12)); in code_new()
118 if (PyUnicode_READY(PyTuple_GET_ITEM(args, 12)) == -1) { in code_new()
121 qualname = PyTuple_GET_ITEM(args, 12); in code_new()
122 firstlineno = _PyLong_AsInt(PyTuple_GET_ITEM(args, 13)); in code_new()
126 if (!PyBytes_Check(PyTuple_GET_ITEM(args, 14))) { in code_new()
127 _PyArg_BadArgument("code", "argument 15", "bytes", PyTuple_GET_ITEM(args, 14)); in code_new()
130 linetable = PyTuple_GET_ITEM(args, 14); in code_new()
131 if (!PyBytes_Check(PyTuple_GET_ITEM(args, 15))) { in code_new()
132 _PyArg_BadArgument("code", "argument 16", "bytes", PyTuple_GET_ITEM(args, 15)); in code_new()
135 exceptiontable = PyTuple_GET_ITEM(args, 15); in code_new()
136 if (PyTuple_GET_SIZE(args) < 17) { in code_new()
139 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 16))) { in code_new()
140 _PyArg_BadArgument("code", "argument 17", "tuple", PyTuple_GET_ITEM(args, 16)); in code_new()
143 freevars = PyTuple_GET_ITEM(args, 16); in code_new()
144 if (PyTuple_GET_SIZE(args) < 18) { in code_new()
147 if (!PyTuple_Check(PyTuple_GET_ITEM(args, 17))) { in code_new()
148 _PyArg_BadArgument("code", "argument 18", "tuple", PyTuple_GET_ITEM(args, 17)); in code_new()
151 cellvars = PyTuple_GET_ITEM(args, 17); in code_new()
186 code_replace(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in code_replace() argument
212 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 0, 0, argsbuf); in code_replace()
213 if (!args) { in code_replace()
219 if (args[0]) { in code_replace()
220 co_argcount = _PyLong_AsInt(args[0]); in code_replace()
228 if (args[1]) { in code_replace()
229 co_posonlyargcount = _PyLong_AsInt(args[1]); in code_replace()
237 if (args[2]) { in code_replace()
238 co_kwonlyargcount = _PyLong_AsInt(args[2]); in code_replace()
246 if (args[3]) { in code_replace()
247 co_nlocals = _PyLong_AsInt(args[3]); in code_replace()
255 if (args[4]) { in code_replace()
256 co_stacksize = _PyLong_AsInt(args[4]); in code_replace()
264 if (args[5]) { in code_replace()
265 co_flags = _PyLong_AsInt(args[5]); in code_replace()
273 if (args[6]) { in code_replace()
274 co_firstlineno = _PyLong_AsInt(args[6]); in code_replace()
282 if (args[7]) { in code_replace()
283 if (!PyBytes_Check(args[7])) { in code_replace()
284 _PyArg_BadArgument("replace", "argument 'co_code'", "bytes", args[7]); in code_replace()
287 co_code = (PyBytesObject *)args[7]; in code_replace()
292 if (args[8]) { in code_replace()
293 if (!PyTuple_Check(args[8])) { in code_replace()
294 _PyArg_BadArgument("replace", "argument 'co_consts'", "tuple", args[8]); in code_replace()
297 co_consts = args[8]; in code_replace()
302 if (args[9]) { in code_replace()
303 if (!PyTuple_Check(args[9])) { in code_replace()
304 _PyArg_BadArgument("replace", "argument 'co_names'", "tuple", args[9]); in code_replace()
307 co_names = args[9]; in code_replace()
312 if (args[10]) { in code_replace()
313 if (!PyTuple_Check(args[10])) { in code_replace()
314 _PyArg_BadArgument("replace", "argument 'co_varnames'", "tuple", args[10]); in code_replace()
317 co_varnames = args[10]; in code_replace()
322 if (args[11]) { in code_replace()
323 if (!PyTuple_Check(args[11])) { in code_replace()
324 _PyArg_BadArgument("replace", "argument 'co_freevars'", "tuple", args[11]); in code_replace()
327 co_freevars = args[11]; in code_replace()
332 if (args[12]) { in code_replace()
333 if (!PyTuple_Check(args[12])) { in code_replace()
334 _PyArg_BadArgument("replace", "argument 'co_cellvars'", "tuple", args[12]); in code_replace()
337 co_cellvars = args[12]; in code_replace()
342 if (args[13]) { in code_replace()
343 if (!PyUnicode_Check(args[13])) { in code_replace()
344 _PyArg_BadArgument("replace", "argument 'co_filename'", "str", args[13]); in code_replace()
347 if (PyUnicode_READY(args[13]) == -1) { in code_replace()
350 co_filename = args[13]; in code_replace()
355 if (args[14]) { in code_replace()
356 if (!PyUnicode_Check(args[14])) { in code_replace()
357 _PyArg_BadArgument("replace", "argument 'co_name'", "str", args[14]); in code_replace()
360 if (PyUnicode_READY(args[14]) == -1) { in code_replace()
363 co_name = args[14]; in code_replace()
368 if (args[15]) { in code_replace()
369 if (!PyUnicode_Check(args[15])) { in code_replace()
370 _PyArg_BadArgument("replace", "argument 'co_qualname'", "str", args[15]); in code_replace()
373 if (PyUnicode_READY(args[15]) == -1) { in code_replace()
376 co_qualname = args[15]; in code_replace()
381 if (args[16]) { in code_replace()
382 if (!PyBytes_Check(args[16])) { in code_replace()
383 _PyArg_BadArgument("replace", "argument 'co_linetable'", "bytes", args[16]); in code_replace()
386 co_linetable = (PyBytesObject *)args[16]; in code_replace()
391 if (!PyBytes_Check(args[17])) { in code_replace()
392 _PyArg_BadArgument("replace", "argument 'co_exceptiontable'", "bytes", args[17]); in code_replace()
395 co_exceptiontable = (PyBytesObject *)args[17]; in code_replace()
418 code__varname_from_oparg(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwn… in code__varname_from_oparg() argument
426 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 1, 0, argsbuf); in code__varname_from_oparg()
427 if (!args) { in code__varname_from_oparg()
430 oparg = _PyLong_AsInt(args[0]); in code__varname_from_oparg()