• 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"
10 "--\n"
12 "Create a code object. Not for the faint of heart.");
17 PyObject *code, PyObject *consts, PyObject *names,
33 PyObject *code; in code_new() local
47 type->tp_init == PyCode_Type.tp_init) && in code_new()
48 !_PyArg_NoKeywords("code", kwargs)) { in code_new()
49 goto exit; in code_new()
51 if (!_PyArg_CheckPositional("code", PyTuple_GET_SIZE(args), 16, 18)) { in code_new()
52 goto exit; in code_new()
55 if (argcount == -1 && PyErr_Occurred()) { in code_new()
56 goto exit; in code_new()
59 if (posonlyargcount == -1 && PyErr_Occurred()) { in code_new()
60 goto exit; in code_new()
63 if (kwonlyargcount == -1 && PyErr_Occurred()) { in code_new()
64 goto exit; in code_new()
67 if (nlocals == -1 && PyErr_Occurred()) { in code_new()
68 goto exit; in code_new()
71 if (stacksize == -1 && PyErr_Occurred()) { in code_new()
72 goto exit; in code_new()
75 if (flags == -1 && PyErr_Occurred()) { in code_new()
76 goto exit; in code_new()
79 _PyArg_BadArgument("code", "argument 7", "bytes", PyTuple_GET_ITEM(args, 6)); in code_new()
80 goto exit; in code_new()
82 code = PyTuple_GET_ITEM(args, 6); in code_new()
84 _PyArg_BadArgument("code", "argument 8", "tuple", PyTuple_GET_ITEM(args, 7)); in code_new()
85 goto exit; in code_new()
89 _PyArg_BadArgument("code", "argument 9", "tuple", PyTuple_GET_ITEM(args, 8)); in code_new()
90 goto exit; in code_new()
94 _PyArg_BadArgument("code", "argument 10", "tuple", PyTuple_GET_ITEM(args, 9)); in code_new()
95 goto exit; in code_new()
99 _PyArg_BadArgument("code", "argument 11", "str", PyTuple_GET_ITEM(args, 10)); in code_new()
100 goto exit; in code_new()
102 if (PyUnicode_READY(PyTuple_GET_ITEM(args, 10)) == -1) { in code_new()
103 goto exit; in code_new()
107 _PyArg_BadArgument("code", "argument 12", "str", PyTuple_GET_ITEM(args, 11)); in code_new()
108 goto exit; in code_new()
110 if (PyUnicode_READY(PyTuple_GET_ITEM(args, 11)) == -1) { in code_new()
111 goto exit; in code_new()
115 _PyArg_BadArgument("code", "argument 13", "str", PyTuple_GET_ITEM(args, 12)); in code_new()
116 goto exit; in code_new()
118 if (PyUnicode_READY(PyTuple_GET_ITEM(args, 12)) == -1) { in code_new()
119 goto exit; in code_new()
123 if (firstlineno == -1 && PyErr_Occurred()) { in code_new()
124 goto exit; in code_new()
127 _PyArg_BadArgument("code", "argument 15", "bytes", PyTuple_GET_ITEM(args, 14)); in code_new()
128 goto exit; in code_new()
132 _PyArg_BadArgument("code", "argument 16", "bytes", PyTuple_GET_ITEM(args, 15)); in code_new()
133 goto exit; in code_new()
140 _PyArg_BadArgument("code", "argument 17", "tuple", PyTuple_GET_ITEM(args, 16)); in code_new()
141 goto exit; in code_new()
148 _PyArg_BadArgument("code", "argument 18", "tuple", PyTuple_GET_ITEM(args, 17)); in code_new()
149 goto exit; in code_new()
153 …pe, argcount, posonlyargcount, kwonlyargcount, nlocals, stacksize, flags, code, consts, names, var… in code_new()
155 exit: in code_new()
160 "replace($self, /, *, co_argcount=-1, co_posonlyargcount=-1,\n"
161 " co_kwonlyargcount=-1, co_nlocals=-1, co_stacksize=-1,\n"
162 " co_flags=-1, co_firstlineno=-1, co_code=None, co_consts=None,\n"
166 "--\n"
168 "Return a copy of the code object with new values for the specified fields.");
192 Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 0; in code_replace()
193 int co_argcount = self->co_argcount; in code_replace()
194 int co_posonlyargcount = self->co_posonlyargcount; in code_replace()
195 int co_kwonlyargcount = self->co_kwonlyargcount; in code_replace()
196 int co_nlocals = self->co_nlocals; in code_replace()
197 int co_stacksize = self->co_stacksize; in code_replace()
198 int co_flags = self->co_flags; in code_replace()
199 int co_firstlineno = self->co_firstlineno; in code_replace()
201 PyObject *co_consts = self->co_consts; in code_replace()
202 PyObject *co_names = self->co_names; in code_replace()
206 PyObject *co_filename = self->co_filename; in code_replace()
207 PyObject *co_name = self->co_name; in code_replace()
208 PyObject *co_qualname = self->co_qualname; in code_replace()
209 PyBytesObject *co_linetable = (PyBytesObject *)self->co_linetable; in code_replace()
210 PyBytesObject *co_exceptiontable = (PyBytesObject *)self->co_exceptiontable; in code_replace()
214 goto exit; in code_replace()
221 if (co_argcount == -1 && PyErr_Occurred()) { in code_replace()
222 goto exit; in code_replace()
224 if (!--noptargs) { in code_replace()
230 if (co_posonlyargcount == -1 && PyErr_Occurred()) { in code_replace()
231 goto exit; in code_replace()
233 if (!--noptargs) { in code_replace()
239 if (co_kwonlyargcount == -1 && PyErr_Occurred()) { in code_replace()
240 goto exit; in code_replace()
242 if (!--noptargs) { in code_replace()
248 if (co_nlocals == -1 && PyErr_Occurred()) { in code_replace()
249 goto exit; in code_replace()
251 if (!--noptargs) { in code_replace()
257 if (co_stacksize == -1 && PyErr_Occurred()) { in code_replace()
258 goto exit; in code_replace()
260 if (!--noptargs) { in code_replace()
266 if (co_flags == -1 && PyErr_Occurred()) { in code_replace()
267 goto exit; in code_replace()
269 if (!--noptargs) { in code_replace()
275 if (co_firstlineno == -1 && PyErr_Occurred()) { in code_replace()
276 goto exit; in code_replace()
278 if (!--noptargs) { in code_replace()
285 goto exit; in code_replace()
288 if (!--noptargs) { in code_replace()
295 goto exit; in code_replace()
298 if (!--noptargs) { in code_replace()
305 goto exit; in code_replace()
308 if (!--noptargs) { in code_replace()
315 goto exit; in code_replace()
318 if (!--noptargs) { in code_replace()
325 goto exit; in code_replace()
328 if (!--noptargs) { in code_replace()
335 goto exit; in code_replace()
338 if (!--noptargs) { in code_replace()
345 goto exit; in code_replace()
347 if (PyUnicode_READY(args[13]) == -1) { in code_replace()
348 goto exit; in code_replace()
351 if (!--noptargs) { in code_replace()
358 goto exit; in code_replace()
360 if (PyUnicode_READY(args[14]) == -1) { in code_replace()
361 goto exit; in code_replace()
364 if (!--noptargs) { in code_replace()
371 goto exit; in code_replace()
373 if (PyUnicode_READY(args[15]) == -1) { in code_replace()
374 goto exit; in code_replace()
377 if (!--noptargs) { in code_replace()
384 goto exit; in code_replace()
387 if (!--noptargs) { in code_replace()
393 goto exit; in code_replace()
399 exit: in code_replace()
405 "--\n"
407 "(internal-only) Return the local variable name for the given oparg.\n"
428 goto exit; in code__varname_from_oparg()
431 if (oparg == -1 && PyErr_Occurred()) { in code__varname_from_oparg()
432 goto exit; in code__varname_from_oparg()
436 exit: in code__varname_from_oparg()
439 /*[clinic end generated code: output=9c521b6c79f90ff7 input=a9049054013a1b77]*/