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