• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:exit +full:- +full:code

3 [clinic start generated code]*/
6 "code(argcount, posonlyargcount, kwonlyargcount, nlocals, stacksize,\n"
9 "--\n"
11 "Create a code object. Not for the faint of heart.");
16 PyObject *code, PyObject *consts, PyObject *names,
31 PyObject *code; in code_new() local
43 !_PyArg_NoKeywords("code", kwargs)) { in code_new()
44 goto exit; in code_new()
46 if (!_PyArg_CheckPositional("code", PyTuple_GET_SIZE(args), 14, 16)) { in code_new()
47 goto exit; in code_new()
50 if (argcount == -1 && PyErr_Occurred()) { in code_new()
51 goto exit; in code_new()
54 if (posonlyargcount == -1 && PyErr_Occurred()) { in code_new()
55 goto exit; in code_new()
58 if (kwonlyargcount == -1 && PyErr_Occurred()) { in code_new()
59 goto exit; in code_new()
62 if (nlocals == -1 && PyErr_Occurred()) { in code_new()
63 goto exit; in code_new()
66 if (stacksize == -1 && PyErr_Occurred()) { in code_new()
67 goto exit; in code_new()
70 if (flags == -1 && PyErr_Occurred()) { in code_new()
71 goto exit; in code_new()
74 _PyArg_BadArgument("code", "argument 7", "bytes", PyTuple_GET_ITEM(args, 6)); in code_new()
75 goto exit; in code_new()
77 code = PyTuple_GET_ITEM(args, 6); in code_new()
79 _PyArg_BadArgument("code", "argument 8", "tuple", PyTuple_GET_ITEM(args, 7)); in code_new()
80 goto exit; in code_new()
84 _PyArg_BadArgument("code", "argument 9", "tuple", PyTuple_GET_ITEM(args, 8)); in code_new()
85 goto exit; in code_new()
89 _PyArg_BadArgument("code", "argument 10", "tuple", PyTuple_GET_ITEM(args, 9)); in code_new()
90 goto exit; in code_new()
94 _PyArg_BadArgument("code", "argument 11", "str", PyTuple_GET_ITEM(args, 10)); in code_new()
95 goto exit; in code_new()
97 if (PyUnicode_READY(PyTuple_GET_ITEM(args, 10)) == -1) { in code_new()
98 goto exit; in code_new()
102 _PyArg_BadArgument("code", "argument 12", "str", PyTuple_GET_ITEM(args, 11)); in code_new()
103 goto exit; in code_new()
105 if (PyUnicode_READY(PyTuple_GET_ITEM(args, 11)) == -1) { in code_new()
106 goto exit; in code_new()
110 if (firstlineno == -1 && PyErr_Occurred()) { in code_new()
111 goto exit; in code_new()
114 _PyArg_BadArgument("code", "argument 14", "bytes", PyTuple_GET_ITEM(args, 13)); in code_new()
115 goto exit; in code_new()
122 _PyArg_BadArgument("code", "argument 15", "tuple", PyTuple_GET_ITEM(args, 14)); in code_new()
123 goto exit; in code_new()
130 _PyArg_BadArgument("code", "argument 16", "tuple", PyTuple_GET_ITEM(args, 15)); in code_new()
131 goto exit; in code_new()
135 …pe, argcount, posonlyargcount, kwonlyargcount, nlocals, stacksize, flags, code, consts, names, var… in code_new()
137 exit: in code_new()
142 "replace($self, /, *, co_argcount=-1, co_posonlyargcount=-1,\n"
143 " co_kwonlyargcount=-1, co_nlocals=-1, co_stacksize=-1,\n"
144 " co_flags=-1, co_firstlineno=-1, co_code=None, co_consts=None,\n"
148 "--\n"
150 "Return a copy of the code object with new values for the specified fields.");
172 Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 0; in code_replace()
173 int co_argcount = self->co_argcount; in code_replace()
174 int co_posonlyargcount = self->co_posonlyargcount; in code_replace()
175 int co_kwonlyargcount = self->co_kwonlyargcount; in code_replace()
176 int co_nlocals = self->co_nlocals; in code_replace()
177 int co_stacksize = self->co_stacksize; in code_replace()
178 int co_flags = self->co_flags; in code_replace()
179 int co_firstlineno = self->co_firstlineno; in code_replace()
180 PyBytesObject *co_code = (PyBytesObject *)self->co_code; in code_replace()
181 PyObject *co_consts = self->co_consts; in code_replace()
182 PyObject *co_names = self->co_names; in code_replace()
183 PyObject *co_varnames = self->co_varnames; in code_replace()
184 PyObject *co_freevars = self->co_freevars; in code_replace()
185 PyObject *co_cellvars = self->co_cellvars; in code_replace()
186 PyObject *co_filename = self->co_filename; in code_replace()
187 PyObject *co_name = self->co_name; in code_replace()
188 PyBytesObject *co_linetable = (PyBytesObject *)self->co_linetable; in code_replace()
192 goto exit; in code_replace()
199 if (co_argcount == -1 && PyErr_Occurred()) { in code_replace()
200 goto exit; in code_replace()
202 if (!--noptargs) { in code_replace()
208 if (co_posonlyargcount == -1 && PyErr_Occurred()) { in code_replace()
209 goto exit; in code_replace()
211 if (!--noptargs) { in code_replace()
217 if (co_kwonlyargcount == -1 && PyErr_Occurred()) { in code_replace()
218 goto exit; in code_replace()
220 if (!--noptargs) { in code_replace()
226 if (co_nlocals == -1 && PyErr_Occurred()) { in code_replace()
227 goto exit; in code_replace()
229 if (!--noptargs) { in code_replace()
235 if (co_stacksize == -1 && PyErr_Occurred()) { in code_replace()
236 goto exit; in code_replace()
238 if (!--noptargs) { in code_replace()
244 if (co_flags == -1 && PyErr_Occurred()) { in code_replace()
245 goto exit; in code_replace()
247 if (!--noptargs) { in code_replace()
253 if (co_firstlineno == -1 && PyErr_Occurred()) { in code_replace()
254 goto exit; in code_replace()
256 if (!--noptargs) { in code_replace()
263 goto exit; in code_replace()
266 if (!--noptargs) { in code_replace()
273 goto exit; in code_replace()
276 if (!--noptargs) { in code_replace()
283 goto exit; in code_replace()
286 if (!--noptargs) { in code_replace()
293 goto exit; in code_replace()
296 if (!--noptargs) { in code_replace()
303 goto exit; in code_replace()
306 if (!--noptargs) { in code_replace()
313 goto exit; in code_replace()
316 if (!--noptargs) { in code_replace()
323 goto exit; in code_replace()
325 if (PyUnicode_READY(args[13]) == -1) { in code_replace()
326 goto exit; in code_replace()
329 if (!--noptargs) { in code_replace()
336 goto exit; in code_replace()
338 if (PyUnicode_READY(args[14]) == -1) { in code_replace()
339 goto exit; in code_replace()
342 if (!--noptargs) { in code_replace()
348 goto exit; in code_replace()
354 exit: in code_replace()
357 /*[clinic end generated code: output=e3091c7baaaaa420 input=a9049054013a1b77]*/