/home/mdboom/Work/builds/cpython/Objects/clinic/codeobject.c.h
Line | Count | Source (jump to first uncovered line) |
1 | /*[clinic input] |
2 | preserve |
3 | [clinic start generated code]*/ |
4 | |
5 | PyDoc_STRVAR(code_new__doc__, |
6 | "code(argcount, posonlyargcount, kwonlyargcount, nlocals, stacksize,\n" |
7 | " flags, codestring, constants, names, varnames, filename, name,\n" |
8 | " qualname, firstlineno, linetable, exceptiontable, freevars=(),\n" |
9 | " cellvars=(), /)\n" |
10 | "--\n" |
11 | "\n" |
12 | "Create a code object. Not for the faint of heart."); |
13 | |
14 | static PyObject * |
15 | code_new_impl(PyTypeObject *type, int argcount, int posonlyargcount, |
16 | int kwonlyargcount, int nlocals, int stacksize, int flags, |
17 | PyObject *code, PyObject *consts, PyObject *names, |
18 | PyObject *varnames, PyObject *filename, PyObject *name, |
19 | PyObject *qualname, int firstlineno, PyObject *linetable, |
20 | PyObject *exceptiontable, PyObject *freevars, |
21 | PyObject *cellvars); |
22 | |
23 | static PyObject * |
24 | code_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) |
25 | { |
26 | PyObject *return_value = NULL; |
27 | int argcount; |
28 | int posonlyargcount; |
29 | int kwonlyargcount; |
30 | int nlocals; |
31 | int stacksize; |
32 | int flags; |
33 | PyObject *code; |
34 | PyObject *consts; |
35 | PyObject *names; |
36 | PyObject *varnames; |
37 | PyObject *filename; |
38 | PyObject *name; |
39 | PyObject *qualname; |
40 | int firstlineno; |
41 | PyObject *linetable; |
42 | PyObject *exceptiontable; |
43 | PyObject *freevars = NULL; |
44 | PyObject *cellvars = NULL; |
45 | |
46 | if ((type == &PyCode_Type || Branch (46:10): [True: 3, False: 0]
|
47 | type->tp_init == PyCode_Type.tp_init0 ) && Branch (47:10): [True: 0, False: 0]
|
48 | !_PyArg_NoKeywords("code", kwargs)) { |
49 | goto exit; |
50 | } |
51 | if (!_PyArg_CheckPositional("code", PyTuple_GET_SIZE(args), 16, 18)) { |
52 | goto exit; |
53 | } |
54 | argcount = _PyLong_AsInt(PyTuple_GET_ITEM(args, 0)); |
55 | if (argcount == -1 && PyErr_Occurred()0 ) { Branch (55:9): [True: 0, False: 3]
Branch (55:27): [True: 0, False: 0]
|
56 | goto exit; |
57 | } |
58 | posonlyargcount = _PyLong_AsInt(PyTuple_GET_ITEM(args, 1)); |
59 | if (posonlyargcount == -1 && PyErr_Occurred()0 ) { Branch (59:9): [True: 0, False: 3]
Branch (59:34): [True: 0, False: 0]
|
60 | goto exit; |
61 | } |
62 | kwonlyargcount = _PyLong_AsInt(PyTuple_GET_ITEM(args, 2)); |
63 | if (kwonlyargcount == -1 && PyErr_Occurred()0 ) { Branch (63:9): [True: 0, False: 3]
Branch (63:33): [True: 0, False: 0]
|
64 | goto exit; |
65 | } |
66 | nlocals = _PyLong_AsInt(PyTuple_GET_ITEM(args, 3)); |
67 | if (nlocals == -1 && PyErr_Occurred()0 ) { Branch (67:9): [True: 0, False: 3]
Branch (67:26): [True: 0, False: 0]
|
68 | goto exit; |
69 | } |
70 | stacksize = _PyLong_AsInt(PyTuple_GET_ITEM(args, 4)); |
71 | if (stacksize == -1 && PyErr_Occurred()0 ) { Branch (71:9): [True: 0, False: 3]
Branch (71:28): [True: 0, False: 0]
|
72 | goto exit; |
73 | } |
74 | flags = _PyLong_AsInt(PyTuple_GET_ITEM(args, 5)); |
75 | if (flags == -1 && PyErr_Occurred()0 ) { Branch (75:9): [True: 0, False: 3]
Branch (75:24): [True: 0, False: 0]
|
76 | goto exit; |
77 | } |
78 | if (!PyBytes_Check(PyTuple_GET_ITEM(args, 6))) { Branch (78:9): [True: 0, False: 3]
|
79 | _PyArg_BadArgument("code", "argument 7", "bytes", PyTuple_GET_ITEM(args, 6)); |
80 | goto exit; |
81 | } |
82 | code = PyTuple_GET_ITEM(args, 6); |
83 | if (!PyTuple_Check(PyTuple_GET_ITEM(args, 7))) { Branch (83:9): [True: 0, False: 3]
|
84 | _PyArg_BadArgument("code", "argument 8", "tuple", PyTuple_GET_ITEM(args, 7)); |
85 | goto exit; |
86 | } |
87 | consts = PyTuple_GET_ITEM(args, 7); |
88 | if (!PyTuple_Check(PyTuple_GET_ITEM(args, 8))) { Branch (88:9): [True: 0, False: 3]
|
89 | _PyArg_BadArgument("code", "argument 9", "tuple", PyTuple_GET_ITEM(args, 8)); |
90 | goto exit; |
91 | } |
92 | names = PyTuple_GET_ITEM(args, 8); |
93 | if (!PyTuple_Check(PyTuple_GET_ITEM(args, 9))) { Branch (93:9): [True: 0, False: 3]
|
94 | _PyArg_BadArgument("code", "argument 10", "tuple", PyTuple_GET_ITEM(args, 9)); |
95 | goto exit; |
96 | } |
97 | varnames = PyTuple_GET_ITEM(args, 9); |
98 | if (!PyUnicode_Check(PyTuple_GET_ITEM(args, 10))) { Branch (98:9): [True: 0, False: 3]
|
99 | _PyArg_BadArgument("code", "argument 11", "str", PyTuple_GET_ITEM(args, 10)); |
100 | goto exit; |
101 | } |
102 | if (PyUnicode_READY(PyTuple_GET_ITEM(args, 10)) == -1) { Branch (102:9): [True: 0, False: 3]
|
103 | goto exit; |
104 | } |
105 | filename = PyTuple_GET_ITEM(args, 10); |
106 | if (!PyUnicode_Check(PyTuple_GET_ITEM(args, 11))) { Branch (106:9): [True: 0, False: 3]
|
107 | _PyArg_BadArgument("code", "argument 12", "str", PyTuple_GET_ITEM(args, 11)); |
108 | goto exit; |
109 | } |
110 | if (PyUnicode_READY(PyTuple_GET_ITEM(args, 11)) == -1) { Branch (110:9): [True: 0, False: 3]
|
111 | goto exit; |
112 | } |
113 | name = PyTuple_GET_ITEM(args, 11); |
114 | if (!PyUnicode_Check(PyTuple_GET_ITEM(args, 12))) { Branch (114:9): [True: 0, False: 3]
|
115 | _PyArg_BadArgument("code", "argument 13", "str", PyTuple_GET_ITEM(args, 12)); |
116 | goto exit; |
117 | } |
118 | if (PyUnicode_READY(PyTuple_GET_ITEM(args, 12)) == -1) { Branch (118:9): [True: 0, False: 3]
|
119 | goto exit; |
120 | } |
121 | qualname = PyTuple_GET_ITEM(args, 12); |
122 | firstlineno = _PyLong_AsInt(PyTuple_GET_ITEM(args, 13)); |
123 | if (firstlineno == -1 && PyErr_Occurred()0 ) { Branch (123:9): [True: 0, False: 3]
Branch (123:30): [True: 0, False: 0]
|
124 | goto exit; |
125 | } |
126 | if (!PyBytes_Check(PyTuple_GET_ITEM(args, 14))) { Branch (126:9): [True: 0, False: 3]
|
127 | _PyArg_BadArgument("code", "argument 15", "bytes", PyTuple_GET_ITEM(args, 14)); |
128 | goto exit; |
129 | } |
130 | linetable = PyTuple_GET_ITEM(args, 14); |
131 | if (!PyBytes_Check(PyTuple_GET_ITEM(args, 15))) { Branch (131:9): [True: 0, False: 3]
|
132 | _PyArg_BadArgument("code", "argument 16", "bytes", PyTuple_GET_ITEM(args, 15)); |
133 | goto exit; |
134 | } |
135 | exceptiontable = PyTuple_GET_ITEM(args, 15); |
136 | if (PyTuple_GET_SIZE(args) < 17) { Branch (136:9): [True: 0, False: 3]
|
137 | goto skip_optional; |
138 | } |
139 | if (!PyTuple_Check(PyTuple_GET_ITEM(args, 16))) { Branch (139:9): [True: 0, False: 3]
|
140 | _PyArg_BadArgument("code", "argument 17", "tuple", PyTuple_GET_ITEM(args, 16)); |
141 | goto exit; |
142 | } |
143 | freevars = PyTuple_GET_ITEM(args, 16); |
144 | if (PyTuple_GET_SIZE(args) < 18) { Branch (144:9): [True: 0, False: 3]
|
145 | goto skip_optional; |
146 | } |
147 | if (!PyTuple_Check(PyTuple_GET_ITEM(args, 17))) { Branch (147:9): [True: 0, False: 3]
|
148 | _PyArg_BadArgument("code", "argument 18", "tuple", PyTuple_GET_ITEM(args, 17)); |
149 | goto exit; |
150 | } |
151 | cellvars = PyTuple_GET_ITEM(args, 17); |
152 | skip_optional: |
153 | return_value = code_new_impl(type, argcount, posonlyargcount, kwonlyargcount, nlocals, stacksize, flags, code, consts, names, varnames, filename, name, qualname, firstlineno, linetable, exceptiontable, freevars, cellvars); |
154 | |
155 | exit: |
156 | return return_value; |
157 | } |
158 | |
159 | PyDoc_STRVAR(code_replace__doc__, |
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" |
163 | " co_names=None, co_varnames=None, co_freevars=None,\n" |
164 | " co_cellvars=None, co_filename=None, co_name=None,\n" |
165 | " co_qualname=None, co_linetable=None, co_exceptiontable=None)\n" |
166 | "--\n" |
167 | "\n" |
168 | "Return a copy of the code object with new values for the specified fields."); |
169 | |
170 | #define CODE_REPLACE_METHODDEF \ |
171 | {"replace", _PyCFunction_CAST(code_replace), METH_FASTCALL|METH_KEYWORDS, code_replace__doc__}, |
172 | |
173 | static PyObject * |
174 | code_replace_impl(PyCodeObject *self, int co_argcount, |
175 | int co_posonlyargcount, int co_kwonlyargcount, |
176 | int co_nlocals, int co_stacksize, int co_flags, |
177 | int co_firstlineno, PyBytesObject *co_code, |
178 | PyObject *co_consts, PyObject *co_names, |
179 | PyObject *co_varnames, PyObject *co_freevars, |
180 | PyObject *co_cellvars, PyObject *co_filename, |
181 | PyObject *co_name, PyObject *co_qualname, |
182 | PyBytesObject *co_linetable, |
183 | PyBytesObject *co_exceptiontable); |
184 | |
185 | static PyObject * |
186 | code_replace(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) |
187 | { |
188 | PyObject *return_value = NULL; |
189 | static const char * const _keywords[] = {"co_argcount", "co_posonlyargcount", "co_kwonlyargcount", "co_nlocals", "co_stacksize", "co_flags", "co_firstlineno", "co_code", "co_consts", "co_names", "co_varnames", "co_freevars", "co_cellvars", "co_filename", "co_name", "co_qualname", "co_linetable", "co_exceptiontable", NULL}; |
190 | static _PyArg_Parser _parser = {NULL, _keywords, "replace", 0}; |
191 | PyObject *argsbuf[18]; |
192 | Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE63 (kwnames) : 04 ) - 0; Branch (192:36): [True: 63, False: 4]
|
193 | int co_argcount = self->co_argcount; |
194 | int co_posonlyargcount = self->co_posonlyargcount; |
195 | int co_kwonlyargcount = self->co_kwonlyargcount; |
196 | int co_nlocals = self->co_nlocals; |
197 | int co_stacksize = self->co_stacksize; |
198 | int co_flags = self->co_flags; |
199 | int co_firstlineno = self->co_firstlineno; |
200 | PyBytesObject *co_code = NULL; |
201 | PyObject *co_consts = self->co_consts; |
202 | PyObject *co_names = self->co_names; |
203 | PyObject *co_varnames = NULL; |
204 | PyObject *co_freevars = NULL; |
205 | PyObject *co_cellvars = NULL; |
206 | PyObject *co_filename = self->co_filename; |
207 | PyObject *co_name = self->co_name; |
208 | PyObject *co_qualname = self->co_qualname; |
209 | PyBytesObject *co_linetable = (PyBytesObject *)self->co_linetable; |
210 | PyBytesObject *co_exceptiontable = (PyBytesObject *)self->co_exceptiontable; |
211 | |
212 | args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 0, 0, argsbuf); |
213 | if (!args) { Branch (213:9): [True: 0, False: 67]
|
214 | goto exit; |
215 | } |
216 | if (!noptargs) { Branch (216:9): [True: 4, False: 63]
|
217 | goto skip_optional_kwonly; |
218 | } |
219 | if (args[0]) { Branch (219:9): [True: 1, False: 62]
|
220 | co_argcount = _PyLong_AsInt(args[0]); |
221 | if (co_argcount == -1 && PyErr_Occurred()0 ) { Branch (221:13): [True: 0, False: 1]
Branch (221:34): [True: 0, False: 0]
|
222 | goto exit; |
223 | } |
224 | if (!--noptargs) { Branch (224:13): [True: 1, False: 0]
|
225 | goto skip_optional_kwonly; |
226 | } |
227 | } |
228 | if (args[1]) { Branch (228:9): [True: 1, False: 61]
|
229 | co_posonlyargcount = _PyLong_AsInt(args[1]); |
230 | if (co_posonlyargcount == -1 && PyErr_Occurred()0 ) { Branch (230:13): [True: 0, False: 1]
Branch (230:41): [True: 0, False: 0]
|
231 | goto exit; |
232 | } |
233 | if (!--noptargs) { Branch (233:13): [True: 1, False: 0]
|
234 | goto skip_optional_kwonly; |
235 | } |
236 | } |
237 | if (args[2]) { Branch (237:9): [True: 1, False: 60]
|
238 | co_kwonlyargcount = _PyLong_AsInt(args[2]); |
239 | if (co_kwonlyargcount == -1 && PyErr_Occurred()0 ) { Branch (239:13): [True: 0, False: 1]
Branch (239:40): [True: 0, False: 0]
|
240 | goto exit; |
241 | } |
242 | if (!--noptargs) { Branch (242:13): [True: 1, False: 0]
|
243 | goto skip_optional_kwonly; |
244 | } |
245 | } |
246 | if (args[3]) { Branch (246:9): [True: 4, False: 56]
|
247 | co_nlocals = _PyLong_AsInt(args[3]); |
248 | if (co_nlocals == -1 && PyErr_Occurred()0 ) { Branch (248:13): [True: 0, False: 4]
Branch (248:33): [True: 0, False: 0]
|
249 | goto exit; |
250 | } |
251 | if (!--noptargs) { Branch (251:13): [True: 3, False: 1]
|
252 | goto skip_optional_kwonly; |
253 | } |
254 | } |
255 | if (args[4]) { Branch (255:9): [True: 1, False: 56]
|
256 | co_stacksize = _PyLong_AsInt(args[4]); |
257 | if (co_stacksize == -1 && PyErr_Occurred()0 ) { Branch (257:13): [True: 0, False: 1]
Branch (257:35): [True: 0, False: 0]
|
258 | goto exit; |
259 | } |
260 | if (!--noptargs) { Branch (260:13): [True: 1, False: 0]
|
261 | goto skip_optional_kwonly; |
262 | } |
263 | } |
264 | if (args[5]) { Branch (264:9): [True: 34, False: 22]
|
265 | co_flags = _PyLong_AsInt(args[5]); |
266 | if (co_flags == -1 && PyErr_Occurred()0 ) { Branch (266:13): [True: 0, False: 34]
Branch (266:31): [True: 0, False: 0]
|
267 | goto exit; |
268 | } |
269 | if (!--noptargs) { Branch (269:13): [True: 34, False: 0]
|
270 | goto skip_optional_kwonly; |
271 | } |
272 | } |
273 | if (args[6]) { Branch (273:9): [True: 1, False: 21]
|
274 | co_firstlineno = _PyLong_AsInt(args[6]); |
275 | if (co_firstlineno == -1 && PyErr_Occurred()0 ) { Branch (275:13): [True: 0, False: 1]
Branch (275:37): [True: 0, False: 0]
|
276 | goto exit; |
277 | } |
278 | if (!--noptargs) { Branch (278:13): [True: 1, False: 0]
|
279 | goto skip_optional_kwonly; |
280 | } |
281 | } |
282 | if (args[7]) { Branch (282:9): [True: 2, False: 19]
|
283 | if (!PyBytes_Check(args[7])) { Branch (283:13): [True: 0, False: 2]
|
284 | _PyArg_BadArgument("replace", "argument 'co_code'", "bytes", args[7]); |
285 | goto exit; |
286 | } |
287 | co_code = (PyBytesObject *)args[7]; |
288 | if (!--noptargs) { Branch (288:13): [True: 1, False: 1]
|
289 | goto skip_optional_kwonly; |
290 | } |
291 | } |
292 | if (args[8]) { Branch (292:9): [True: 5, False: 15]
|
293 | if (!PyTuple_Check(args[8])) { Branch (293:13): [True: 0, False: 5]
|
294 | _PyArg_BadArgument("replace", "argument 'co_consts'", "tuple", args[8]); |
295 | goto exit; |
296 | } |
297 | co_consts = args[8]; |
298 | if (!--noptargs) { Branch (298:13): [True: 2, False: 3]
|
299 | goto skip_optional_kwonly; |
300 | } |
301 | } |
302 | if (args[9]) { Branch (302:9): [True: 1, False: 17]
|
303 | if (!PyTuple_Check(args[9])) { Branch (303:13): [True: 0, False: 1]
|
304 | _PyArg_BadArgument("replace", "argument 'co_names'", "tuple", args[9]); |
305 | goto exit; |
306 | } |
307 | co_names = args[9]; |
308 | if (!--noptargs) { Branch (308:13): [True: 1, False: 0]
|
309 | goto skip_optional_kwonly; |
310 | } |
311 | } |
312 | if (args[10]) { Branch (312:9): [True: 2, False: 15]
|
313 | if (!PyTuple_Check(args[10])) { Branch (313:13): [True: 0, False: 2]
|
314 | _PyArg_BadArgument("replace", "argument 'co_varnames'", "tuple", args[10]); |
315 | goto exit; |
316 | } |
317 | co_varnames = args[10]; |
318 | if (!--noptargs) { Branch (318:13): [True: 2, False: 0]
|
319 | goto skip_optional_kwonly; |
320 | } |
321 | } |
322 | if (args[11]) { Branch (322:9): [True: 2, False: 13]
|
323 | if (!PyTuple_Check(args[11])) { Branch (323:13): [True: 0, False: 2]
|
324 | _PyArg_BadArgument("replace", "argument 'co_freevars'", "tuple", args[11]); |
325 | goto exit; |
326 | } |
327 | co_freevars = args[11]; |
328 | if (!--noptargs) { Branch (328:13): [True: 2, False: 0]
|
329 | goto skip_optional_kwonly; |
330 | } |
331 | } |
332 | if (args[12]) { Branch (332:9): [True: 1, False: 12]
|
333 | if (!PyTuple_Check(args[12])) { Branch (333:13): [True: 0, False: 1]
|
334 | _PyArg_BadArgument("replace", "argument 'co_cellvars'", "tuple", args[12]); |
335 | goto exit; |
336 | } |
337 | co_cellvars = args[12]; |
338 | if (!--noptargs) { Branch (338:13): [True: 1, False: 0]
|
339 | goto skip_optional_kwonly; |
340 | } |
341 | } |
342 | if (args[13]) { Branch (342:9): [True: 4, False: 8]
|
343 | if (!PyUnicode_Check(args[13])) { Branch (343:13): [True: 0, False: 4]
|
344 | _PyArg_BadArgument("replace", "argument 'co_filename'", "str", args[13]); |
345 | goto exit; |
346 | } |
347 | if (PyUnicode_READY(args[13]) == -1) { Branch (347:13): [True: 0, False: 4]
|
348 | goto exit; |
349 | } |
350 | co_filename = args[13]; |
351 | if (!--noptargs) { Branch (351:13): [True: 4, False: 0]
|
352 | goto skip_optional_kwonly; |
353 | } |
354 | } |
355 | if (args[14]) { Branch (355:9): [True: 2, False: 6]
|
356 | if (!PyUnicode_Check(args[14])) { Branch (356:13): [True: 0, False: 2]
|
357 | _PyArg_BadArgument("replace", "argument 'co_name'", "str", args[14]); |
358 | goto exit; |
359 | } |
360 | if (PyUnicode_READY(args[14]) == -1) { Branch (360:13): [True: 0, False: 2]
|
361 | goto exit; |
362 | } |
363 | co_name = args[14]; |
364 | if (!--noptargs) { Branch (364:13): [True: 2, False: 0]
|
365 | goto skip_optional_kwonly; |
366 | } |
367 | } |
368 | if (args[15]) { Branch (368:9): [True: 0, False: 6]
|
369 | if (!PyUnicode_Check(args[15])) { Branch (369:13): [True: 0, False: 0]
|
370 | _PyArg_BadArgument("replace", "argument 'co_qualname'", "str", args[15]); |
371 | goto exit; |
372 | } |
373 | if (PyUnicode_READY(args[15]) == -1) { Branch (373:13): [True: 0, False: 0]
|
374 | goto exit; |
375 | } |
376 | co_qualname = args[15]; |
377 | if (!--noptargs) { Branch (377:13): [True: 0, False: 0]
|
378 | goto skip_optional_kwonly; |
379 | } |
380 | } |
381 | if (args[16]) { Branch (381:9): [True: 6, False: 0]
|
382 | if (!PyBytes_Check(args[16])) { Branch (382:13): [True: 0, False: 6]
|
383 | _PyArg_BadArgument("replace", "argument 'co_linetable'", "bytes", args[16]); |
384 | goto exit; |
385 | } |
386 | co_linetable = (PyBytesObject *)args[16]; |
387 | if (!--noptargs) { Branch (387:13): [True: 6, False: 0]
|
388 | goto skip_optional_kwonly; |
389 | } |
390 | } |
391 | if (!PyBytes_Check(args[17])) { Branch (391:9): [True: 0, False: 0]
|
392 | _PyArg_BadArgument("replace", "argument 'co_exceptiontable'", "bytes", args[17]); |
393 | goto exit; |
394 | } |
395 | co_exceptiontable = (PyBytesObject *)args[17]; |
396 | skip_optional_kwonly: |
397 | return_value = code_replace_impl(self, co_argcount, co_posonlyargcount, co_kwonlyargcount, co_nlocals, co_stacksize, co_flags, co_firstlineno, co_code, co_consts, co_names, co_varnames, co_freevars, co_cellvars, co_filename, co_name, co_qualname, co_linetable, co_exceptiontable); |
398 | |
399 | exit: |
400 | return return_value; |
401 | } |
402 | |
403 | PyDoc_STRVAR(code__varname_from_oparg__doc__, |
404 | "_varname_from_oparg($self, /, oparg)\n" |
405 | "--\n" |
406 | "\n" |
407 | "(internal-only) Return the local variable name for the given oparg.\n" |
408 | "\n" |
409 | "WARNING: this method is for internal use only and may change or go away."); |
410 | |
411 | #define CODE__VARNAME_FROM_OPARG_METHODDEF \ |
412 | {"_varname_from_oparg", _PyCFunction_CAST(code__varname_from_oparg), METH_FASTCALL|METH_KEYWORDS, code__varname_from_oparg__doc__}, |
413 | |
414 | static PyObject * |
415 | code__varname_from_oparg_impl(PyCodeObject *self, int oparg); |
416 | |
417 | static PyObject * |
418 | code__varname_from_oparg(PyCodeObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) |
419 | { |
420 | PyObject *return_value = NULL; |
421 | static const char * const _keywords[] = {"oparg", NULL}; |
422 | static _PyArg_Parser _parser = {NULL, _keywords, "_varname_from_oparg", 0}; |
423 | PyObject *argsbuf[1]; |
424 | int oparg; |
425 | |
426 | args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 1, 0, argsbuf); |
427 | if (!args) { Branch (427:9): [True: 0, False: 8.94k]
|
428 | goto exit; |
429 | } |
430 | oparg = _PyLong_AsInt(args[0]); |
431 | if (oparg == -1 && PyErr_Occurred()0 ) { Branch (431:9): [True: 0, False: 8.94k]
Branch (431:24): [True: 0, False: 0]
|
432 | goto exit; |
433 | } |
434 | return_value = code__varname_from_oparg_impl(self, oparg); |
435 | |
436 | exit: |
437 | return return_value; |
438 | } |
439 | /*[clinic end generated code: output=9c521b6c79f90ff7 input=a9049054013a1b77]*/ |