Debian Codegraph @

Modules/clinic/_testclinic_depr.c.h

raw
1 /*[clinic input]
2 preserve
3 [clinic start generated code]*/
4
5 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
6 # include "pycore_gc.h" // PyGC_Head
7 #endif
8 #include "pycore_abstract.h" // _PyNumber_Index()
9 #include "pycore_long.h" // _PyLong_UnsignedShort_Converter()
10 #include "pycore_modsupport.h" // _PyArg_CheckPositional()
11 #include "pycore_runtime.h" // _Py_ID()
12
13 PyDoc_STRVAR(depr_star_new__doc__,
14 "DeprStarNew(a=None)\n"
15 "--\n"
16 "\n"
17 "The deprecation message should use the class name instead of __new__.\n"
18 "\n"
19 "Note: Passing positional arguments to _testclinic.DeprStarNew() is\n"
20 "deprecated. Parameter \'a\' will become a keyword-only parameter in\n"
21 "Python 3.14.\n"
22 "");
23
24 static PyObject *
25 depr_star_new_impl(PyTypeObject *type, PyObject *a);
26
27 // Emit compiler warnings when we get to Python 3.14.
28 #if PY_VERSION_HEX >= 0x030e00C0
29 # error "Update the clinic input of '_testclinic.DeprStarNew.__new__'."
30 #elif PY_VERSION_HEX >= 0x030e00A0
31 # ifdef _MSC_VER
32 # pragma message ("Update the clinic input of '_testclinic.DeprStarNew.__new__'.")
33 # else
34 # warning "Update the clinic input of '_testclinic.DeprStarNew.__new__'."
35 # endif
36 #endif
37
38 static PyObject *
39 depr_star_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
40 {
41 PyObject *return_value = NULL;
42 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
43
44 #define NUM_KEYWORDS 1
45 static struct {
46 PyGC_Head _this_is_not_used;
47 PyObject_VAR_HEAD
48 PyObject *ob_item[NUM_KEYWORDS];
49 } _kwtuple = {
50 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
51 .ob_item = { _Py_LATIN1_CHR('a'), },
52 };
53 #undef NUM_KEYWORDS
54 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
55
56 #else // !Py_BUILD_CORE
57 # define KWTUPLE NULL
58 #endif // !Py_BUILD_CORE
59
60 static const char * const _keywords[] = {"a", NULL};
61 static _PyArg_Parser _parser = {
62 .keywords = _keywords,
63 .fname = "DeprStarNew",
64 .kwtuple = KWTUPLE,
65 };
66 #undef KWTUPLE
67 PyObject *argsbuf[1];
68 PyObject * const *fastargs;
69 Py_ssize_t nargs = PyTuple_GET_SIZE(args);
70 Py_ssize_t noptargs = nargs + (kwargs ? PyDict_GET_SIZE(kwargs) : 0) - 0;
71 PyObject *a = Py_None;
72
73 if (nargs == 1) {
74 if (PyErr_WarnEx(PyExc_DeprecationWarning,
75 "Passing positional arguments to _testclinic.DeprStarNew() is "
76 "deprecated. Parameter 'a' will become a keyword-only parameter "
77 "in Python 3.14.", 1))
78 {
79 goto exit;
80 }
81 }
82 fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 1, 0, argsbuf);
83 if (!fastargs) {
84 goto exit;
85 }
86 if (!noptargs) {
87 goto skip_optional_pos;
88 }
89 a = fastargs[0];
90 skip_optional_pos:
91 return_value = depr_star_new_impl(type, a);
92
93 exit:
94 return return_value;
95 }
96
97 PyDoc_STRVAR(depr_star_new_clone__doc__,
98 "cloned($self, /, a=None)\n"
99 "--\n"
100 "\n"
101 "Note: Passing positional arguments to _testclinic.DeprStarNew.cloned()\n"
102 "is deprecated. Parameter \'a\' will become a keyword-only parameter in\n"
103 "Python 3.14.\n"
104 "");
105
106 #define DEPR_STAR_NEW_CLONE_METHODDEF \
107 {"cloned", _PyCFunction_CAST(depr_star_new_clone), METH_FASTCALL|METH_KEYWORDS, depr_star_new_clone__doc__},
108
109 static PyObject *
110 depr_star_new_clone_impl(PyObject *type, PyObject *a);
111
112 // Emit compiler warnings when we get to Python 3.14.
113 #if PY_VERSION_HEX >= 0x030e00C0
114 # error "Update the clinic input of '_testclinic.DeprStarNew.cloned'."
115 #elif PY_VERSION_HEX >= 0x030e00A0
116 # ifdef _MSC_VER
117 # pragma message ("Update the clinic input of '_testclinic.DeprStarNew.cloned'.")
118 # else
119 # warning "Update the clinic input of '_testclinic.DeprStarNew.cloned'."
120 # endif
121 #endif
122
123 static PyObject *
124 depr_star_new_clone(PyObject *type, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
125 {
126 PyObject *return_value = NULL;
127 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
128
129 #define NUM_KEYWORDS 1
130 static struct {
131 PyGC_Head _this_is_not_used;
132 PyObject_VAR_HEAD
133 PyObject *ob_item[NUM_KEYWORDS];
134 } _kwtuple = {
135 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
136 .ob_item = { _Py_LATIN1_CHR('a'), },
137 };
138 #undef NUM_KEYWORDS
139 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
140
141 #else // !Py_BUILD_CORE
142 # define KWTUPLE NULL
143 #endif // !Py_BUILD_CORE
144
145 static const char * const _keywords[] = {"a", NULL};
146 static _PyArg_Parser _parser = {
147 .keywords = _keywords,
148 .fname = "cloned",
149 .kwtuple = KWTUPLE,
150 };
151 #undef KWTUPLE
152 PyObject *argsbuf[1];
153 Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 0;
154 PyObject *a = Py_None;
155
156 if (nargs == 1) {
157 if (PyErr_WarnEx(PyExc_DeprecationWarning,
158 "Passing positional arguments to _testclinic.DeprStarNew.cloned()"
159 " is deprecated. Parameter 'a' will become a keyword-only "
160 "parameter in Python 3.14.", 1))
161 {
162 goto exit;
163 }
164 }
165 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 1, 0, argsbuf);
166 if (!args) {
167 goto exit;
168 }
169 if (!noptargs) {
170 goto skip_optional_pos;
171 }
172 a = args[0];
173 skip_optional_pos:
174 return_value = depr_star_new_clone_impl(type, a);
175
176 exit:
177 return return_value;
178 }
179
180 PyDoc_STRVAR(depr_star_init__doc__,
181 "DeprStarInit(a=None)\n"
182 "--\n"
183 "\n"
184 "The deprecation message should use the class name instead of __init__.\n"
185 "\n"
186 "Note: Passing positional arguments to _testclinic.DeprStarInit() is\n"
187 "deprecated. Parameter \'a\' will become a keyword-only parameter in\n"
188 "Python 3.14.\n"
189 "");
190
191 static int
192 depr_star_init_impl(PyObject *self, PyObject *a);
193
194 // Emit compiler warnings when we get to Python 3.14.
195 #if PY_VERSION_HEX >= 0x030e00C0
196 # error "Update the clinic input of '_testclinic.DeprStarInit.__init__'."
197 #elif PY_VERSION_HEX >= 0x030e00A0
198 # ifdef _MSC_VER
199 # pragma message ("Update the clinic input of '_testclinic.DeprStarInit.__init__'.")
200 # else
201 # warning "Update the clinic input of '_testclinic.DeprStarInit.__init__'."
202 # endif
203 #endif
204
205 static int
206 depr_star_init(PyObject *self, PyObject *args, PyObject *kwargs)
207 {
208 int return_value = -1;
209 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
210
211 #define NUM_KEYWORDS 1
212 static struct {
213 PyGC_Head _this_is_not_used;
214 PyObject_VAR_HEAD
215 PyObject *ob_item[NUM_KEYWORDS];
216 } _kwtuple = {
217 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
218 .ob_item = { _Py_LATIN1_CHR('a'), },
219 };
220 #undef NUM_KEYWORDS
221 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
222
223 #else // !Py_BUILD_CORE
224 # define KWTUPLE NULL
225 #endif // !Py_BUILD_CORE
226
227 static const char * const _keywords[] = {"a", NULL};
228 static _PyArg_Parser _parser = {
229 .keywords = _keywords,
230 .fname = "DeprStarInit",
231 .kwtuple = KWTUPLE,
232 };
233 #undef KWTUPLE
234 PyObject *argsbuf[1];
235 PyObject * const *fastargs;
236 Py_ssize_t nargs = PyTuple_GET_SIZE(args);
237 Py_ssize_t noptargs = nargs + (kwargs ? PyDict_GET_SIZE(kwargs) : 0) - 0;
238 PyObject *a = Py_None;
239
240 if (nargs == 1) {
241 if (PyErr_WarnEx(PyExc_DeprecationWarning,
242 "Passing positional arguments to _testclinic.DeprStarInit() is "
243 "deprecated. Parameter 'a' will become a keyword-only parameter "
244 "in Python 3.14.", 1))
245 {
246 goto exit;
247 }
248 }
249 fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 1, 0, argsbuf);
250 if (!fastargs) {
251 goto exit;
252 }
253 if (!noptargs) {
254 goto skip_optional_pos;
255 }
256 a = fastargs[0];
257 skip_optional_pos:
258 return_value = depr_star_init_impl(self, a);
259
260 exit:
261 return return_value;
262 }
263
264 PyDoc_STRVAR(depr_star_init_clone__doc__,
265 "cloned($self, /, a=None)\n"
266 "--\n"
267 "\n"
268 "Note: Passing positional arguments to\n"
269 "_testclinic.DeprStarInit.cloned() is deprecated. Parameter \'a\' will\n"
270 "become a keyword-only parameter in Python 3.14.\n"
271 "");
272
273 #define DEPR_STAR_INIT_CLONE_METHODDEF \
274 {"cloned", _PyCFunction_CAST(depr_star_init_clone), METH_FASTCALL|METH_KEYWORDS, depr_star_init_clone__doc__},
275
276 static PyObject *
277 depr_star_init_clone_impl(PyObject *self, PyObject *a);
278
279 // Emit compiler warnings when we get to Python 3.14.
280 #if PY_VERSION_HEX >= 0x030e00C0
281 # error "Update the clinic input of '_testclinic.DeprStarInit.cloned'."
282 #elif PY_VERSION_HEX >= 0x030e00A0
283 # ifdef _MSC_VER
284 # pragma message ("Update the clinic input of '_testclinic.DeprStarInit.cloned'.")
285 # else
286 # warning "Update the clinic input of '_testclinic.DeprStarInit.cloned'."
287 # endif
288 #endif
289
290 static PyObject *
291 depr_star_init_clone(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
292 {
293 PyObject *return_value = NULL;
294 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
295
296 #define NUM_KEYWORDS 1
297 static struct {
298 PyGC_Head _this_is_not_used;
299 PyObject_VAR_HEAD
300 PyObject *ob_item[NUM_KEYWORDS];
301 } _kwtuple = {
302 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
303 .ob_item = { _Py_LATIN1_CHR('a'), },
304 };
305 #undef NUM_KEYWORDS
306 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
307
308 #else // !Py_BUILD_CORE
309 # define KWTUPLE NULL
310 #endif // !Py_BUILD_CORE
311
312 static const char * const _keywords[] = {"a", NULL};
313 static _PyArg_Parser _parser = {
314 .keywords = _keywords,
315 .fname = "cloned",
316 .kwtuple = KWTUPLE,
317 };
318 #undef KWTUPLE
319 PyObject *argsbuf[1];
320 Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 0;
321 PyObject *a = Py_None;
322
323 if (nargs == 1) {
324 if (PyErr_WarnEx(PyExc_DeprecationWarning,
325 "Passing positional arguments to "
326 "_testclinic.DeprStarInit.cloned() is deprecated. Parameter 'a' "
327 "will become a keyword-only parameter in Python 3.14.", 1))
328 {
329 goto exit;
330 }
331 }
332 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 1, 0, argsbuf);
333 if (!args) {
334 goto exit;
335 }
336 if (!noptargs) {
337 goto skip_optional_pos;
338 }
339 a = args[0];
340 skip_optional_pos:
341 return_value = depr_star_init_clone_impl(self, a);
342
343 exit:
344 return return_value;
345 }
346
347 static int
348 depr_star_init_noinline_impl(PyObject *self, PyObject *a, PyObject *b,
349 PyObject *c, const char *d, Py_ssize_t d_length);
350
351 // Emit compiler warnings when we get to Python 3.14.
352 #if PY_VERSION_HEX >= 0x030e00C0
353 # error "Update the clinic input of '_testclinic.DeprStarInitNoInline.__init__'."
354 #elif PY_VERSION_HEX >= 0x030e00A0
355 # ifdef _MSC_VER
356 # pragma message ("Update the clinic input of '_testclinic.DeprStarInitNoInline.__init__'.")
357 # else
358 # warning "Update the clinic input of '_testclinic.DeprStarInitNoInline.__init__'."
359 # endif
360 #endif
361
362 static int
363 depr_star_init_noinline(PyObject *self, PyObject *args, PyObject *kwargs)
364 {
365 int return_value = -1;
366 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
367
368 #define NUM_KEYWORDS 4
369 static struct {
370 PyGC_Head _this_is_not_used;
371 PyObject_VAR_HEAD
372 PyObject *ob_item[NUM_KEYWORDS];
373 } _kwtuple = {
374 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
375 .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), },
376 };
377 #undef NUM_KEYWORDS
378 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
379
380 #else // !Py_BUILD_CORE
381 # define KWTUPLE NULL
382 #endif // !Py_BUILD_CORE
383
384 static const char * const _keywords[] = {"a", "b", "c", "d", NULL};
385 static _PyArg_Parser _parser = {
386 .keywords = _keywords,
387 .format = "OO|O$s#:DeprStarInitNoInline",
388 .kwtuple = KWTUPLE,
389 };
390 #undef KWTUPLE
391 Py_ssize_t nargs = PyTuple_GET_SIZE(args);
392 PyObject *a;
393 PyObject *b;
394 PyObject *c = Py_None;
395 const char *d = "";
396 Py_ssize_t d_length;
397
398 if (nargs > 1 && nargs <= 3) {
399 if (PyErr_WarnEx(PyExc_DeprecationWarning,
400 "Passing more than 1 positional argument to "
401 "_testclinic.DeprStarInitNoInline() is deprecated. Parameters 'b'"
402 " and 'c' will become keyword-only parameters in Python 3.14.", 1))
403 {
404 goto exit;
405 }
406 }
407 if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser,
408 &a, &b, &c, &d, &d_length)) {
409 goto exit;
410 }
411 return_value = depr_star_init_noinline_impl(self, a, b, c, d, d_length);
412
413 exit:
414 return return_value;
415 }
416
417 PyDoc_STRVAR(depr_kwd_new__doc__,
418 "DeprKwdNew(a=None)\n"
419 "--\n"
420 "\n"
421 "The deprecation message should use the class name instead of __new__.\n"
422 "\n"
423 "Note: Passing keyword argument \'a\' to _testclinic.DeprKwdNew() is\n"
424 "deprecated. Parameter \'a\' will become positional-only in Python 3.14.\n"
425 "");
426
427 static PyObject *
428 depr_kwd_new_impl(PyTypeObject *type, PyObject *a);
429
430 // Emit compiler warnings when we get to Python 3.14.
431 #if PY_VERSION_HEX >= 0x030e00C0
432 # error "Update the clinic input of '_testclinic.DeprKwdNew.__new__'."
433 #elif PY_VERSION_HEX >= 0x030e00A0
434 # ifdef _MSC_VER
435 # pragma message ("Update the clinic input of '_testclinic.DeprKwdNew.__new__'.")
436 # else
437 # warning "Update the clinic input of '_testclinic.DeprKwdNew.__new__'."
438 # endif
439 #endif
440
441 static PyObject *
442 depr_kwd_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
443 {
444 PyObject *return_value = NULL;
445 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
446
447 #define NUM_KEYWORDS 1
448 static struct {
449 PyGC_Head _this_is_not_used;
450 PyObject_VAR_HEAD
451 PyObject *ob_item[NUM_KEYWORDS];
452 } _kwtuple = {
453 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
454 .ob_item = { _Py_LATIN1_CHR('a'), },
455 };
456 #undef NUM_KEYWORDS
457 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
458
459 #else // !Py_BUILD_CORE
460 # define KWTUPLE NULL
461 #endif // !Py_BUILD_CORE
462
463 static const char * const _keywords[] = {"a", NULL};
464 static _PyArg_Parser _parser = {
465 .keywords = _keywords,
466 .fname = "DeprKwdNew",
467 .kwtuple = KWTUPLE,
468 };
469 #undef KWTUPLE
470 PyObject *argsbuf[1];
471 PyObject * const *fastargs;
472 Py_ssize_t nargs = PyTuple_GET_SIZE(args);
473 Py_ssize_t noptargs = nargs + (kwargs ? PyDict_GET_SIZE(kwargs) : 0) - 0;
474 PyObject *a = Py_None;
475
476 fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 1, 0, argsbuf);
477 if (!fastargs) {
478 goto exit;
479 }
480 if (kwargs && PyDict_GET_SIZE(kwargs) && nargs < 1 && fastargs[0]) {
481 if (PyErr_WarnEx(PyExc_DeprecationWarning,
482 "Passing keyword argument 'a' to _testclinic.DeprKwdNew() is "
483 "deprecated. Parameter 'a' will become positional-only in Python "
484 "3.14.", 1))
485 {
486 goto exit;
487 }
488 }
489 if (!noptargs) {
490 goto skip_optional_pos;
491 }
492 a = fastargs[0];
493 skip_optional_pos:
494 return_value = depr_kwd_new_impl(type, a);
495
496 exit:
497 return return_value;
498 }
499
500 PyDoc_STRVAR(depr_kwd_init__doc__,
501 "DeprKwdInit(a=None)\n"
502 "--\n"
503 "\n"
504 "The deprecation message should use the class name instead of __init__.\n"
505 "\n"
506 "Note: Passing keyword argument \'a\' to _testclinic.DeprKwdInit() is\n"
507 "deprecated. Parameter \'a\' will become positional-only in Python 3.14.\n"
508 "");
509
510 static int
511 depr_kwd_init_impl(PyObject *self, PyObject *a);
512
513 // Emit compiler warnings when we get to Python 3.14.
514 #if PY_VERSION_HEX >= 0x030e00C0
515 # error "Update the clinic input of '_testclinic.DeprKwdInit.__init__'."
516 #elif PY_VERSION_HEX >= 0x030e00A0
517 # ifdef _MSC_VER
518 # pragma message ("Update the clinic input of '_testclinic.DeprKwdInit.__init__'.")
519 # else
520 # warning "Update the clinic input of '_testclinic.DeprKwdInit.__init__'."
521 # endif
522 #endif
523
524 static int
525 depr_kwd_init(PyObject *self, PyObject *args, PyObject *kwargs)
526 {
527 int return_value = -1;
528 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
529
530 #define NUM_KEYWORDS 1
531 static struct {
532 PyGC_Head _this_is_not_used;
533 PyObject_VAR_HEAD
534 PyObject *ob_item[NUM_KEYWORDS];
535 } _kwtuple = {
536 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
537 .ob_item = { _Py_LATIN1_CHR('a'), },
538 };
539 #undef NUM_KEYWORDS
540 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
541
542 #else // !Py_BUILD_CORE
543 # define KWTUPLE NULL
544 #endif // !Py_BUILD_CORE
545
546 static const char * const _keywords[] = {"a", NULL};
547 static _PyArg_Parser _parser = {
548 .keywords = _keywords,
549 .fname = "DeprKwdInit",
550 .kwtuple = KWTUPLE,
551 };
552 #undef KWTUPLE
553 PyObject *argsbuf[1];
554 PyObject * const *fastargs;
555 Py_ssize_t nargs = PyTuple_GET_SIZE(args);
556 Py_ssize_t noptargs = nargs + (kwargs ? PyDict_GET_SIZE(kwargs) : 0) - 0;
557 PyObject *a = Py_None;
558
559 fastargs = _PyArg_UnpackKeywords(_PyTuple_CAST(args)->ob_item, nargs, kwargs, NULL, &_parser, 0, 1, 0, argsbuf);
560 if (!fastargs) {
561 goto exit;
562 }
563 if (kwargs && PyDict_GET_SIZE(kwargs) && nargs < 1 && fastargs[0]) {
564 if (PyErr_WarnEx(PyExc_DeprecationWarning,
565 "Passing keyword argument 'a' to _testclinic.DeprKwdInit() is "
566 "deprecated. Parameter 'a' will become positional-only in Python "
567 "3.14.", 1))
568 {
569 goto exit;
570 }
571 }
572 if (!noptargs) {
573 goto skip_optional_pos;
574 }
575 a = fastargs[0];
576 skip_optional_pos:
577 return_value = depr_kwd_init_impl(self, a);
578
579 exit:
580 return return_value;
581 }
582
583 static int
584 depr_kwd_init_noinline_impl(PyObject *self, PyObject *a, PyObject *b,
585 PyObject *c, const char *d, Py_ssize_t d_length);
586
587 // Emit compiler warnings when we get to Python 3.14.
588 #if PY_VERSION_HEX >= 0x030e00C0
589 # error "Update the clinic input of '_testclinic.DeprKwdInitNoInline.__init__'."
590 #elif PY_VERSION_HEX >= 0x030e00A0
591 # ifdef _MSC_VER
592 # pragma message ("Update the clinic input of '_testclinic.DeprKwdInitNoInline.__init__'.")
593 # else
594 # warning "Update the clinic input of '_testclinic.DeprKwdInitNoInline.__init__'."
595 # endif
596 #endif
597
598 static int
599 depr_kwd_init_noinline(PyObject *self, PyObject *args, PyObject *kwargs)
600 {
601 int return_value = -1;
602 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
603
604 #define NUM_KEYWORDS 3
605 static struct {
606 PyGC_Head _this_is_not_used;
607 PyObject_VAR_HEAD
608 PyObject *ob_item[NUM_KEYWORDS];
609 } _kwtuple = {
610 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
611 .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), },
612 };
613 #undef NUM_KEYWORDS
614 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
615
616 #else // !Py_BUILD_CORE
617 # define KWTUPLE NULL
618 #endif // !Py_BUILD_CORE
619
620 static const char * const _keywords[] = {"", "b", "c", "d", NULL};
621 static _PyArg_Parser _parser = {
622 .keywords = _keywords,
623 .format = "OO|Os#:DeprKwdInitNoInline",
624 .kwtuple = KWTUPLE,
625 };
626 #undef KWTUPLE
627 Py_ssize_t nargs = PyTuple_GET_SIZE(args);
628 PyObject *a;
629 PyObject *b;
630 PyObject *c = Py_None;
631 const char *d = "";
632 Py_ssize_t d_length;
633
634 if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser,
635 &a, &b, &c, &d, &d_length)) {
636 goto exit;
637 }
638 if (kwargs && PyDict_GET_SIZE(kwargs) && ((nargs < 2) || (nargs < 3 && PyDict_Contains(kwargs, _Py_LATIN1_CHR('c'))))) {
639 if (PyErr_Occurred()) { // PyDict_Contains() above can fail
640 goto exit;
641 }
642 if (PyErr_WarnEx(PyExc_DeprecationWarning,
643 "Passing keyword arguments 'b' and 'c' to "
644 "_testclinic.DeprKwdInitNoInline() is deprecated. Parameters 'b' "
645 "and 'c' will become positional-only in Python 3.14.", 1))
646 {
647 goto exit;
648 }
649 }
650 return_value = depr_kwd_init_noinline_impl(self, a, b, c, d, d_length);
651
652 exit:
653 return return_value;
654 }
655
656 PyDoc_STRVAR(depr_star_pos0_len1__doc__,
657 "depr_star_pos0_len1($module, /, a)\n"
658 "--\n"
659 "\n"
660 "Note: Passing positional arguments to depr_star_pos0_len1() is\n"
661 "deprecated. Parameter \'a\' will become a keyword-only parameter in\n"
662 "Python 3.14.\n"
663 "");
664
665 #define DEPR_STAR_POS0_LEN1_METHODDEF \
666 {"depr_star_pos0_len1", _PyCFunction_CAST(depr_star_pos0_len1), METH_FASTCALL|METH_KEYWORDS, depr_star_pos0_len1__doc__},
667
668 static PyObject *
669 depr_star_pos0_len1_impl(PyObject *module, PyObject *a);
670
671 // Emit compiler warnings when we get to Python 3.14.
672 #if PY_VERSION_HEX >= 0x030e00C0
673 # error "Update the clinic input of 'depr_star_pos0_len1'."
674 #elif PY_VERSION_HEX >= 0x030e00A0
675 # ifdef _MSC_VER
676 # pragma message ("Update the clinic input of 'depr_star_pos0_len1'.")
677 # else
678 # warning "Update the clinic input of 'depr_star_pos0_len1'."
679 # endif
680 #endif
681
682 static PyObject *
683 depr_star_pos0_len1(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
684 {
685 PyObject *return_value = NULL;
686 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
687
688 #define NUM_KEYWORDS 1
689 static struct {
690 PyGC_Head _this_is_not_used;
691 PyObject_VAR_HEAD
692 PyObject *ob_item[NUM_KEYWORDS];
693 } _kwtuple = {
694 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
695 .ob_item = { _Py_LATIN1_CHR('a'), },
696 };
697 #undef NUM_KEYWORDS
698 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
699
700 #else // !Py_BUILD_CORE
701 # define KWTUPLE NULL
702 #endif // !Py_BUILD_CORE
703
704 static const char * const _keywords[] = {"a", NULL};
705 static _PyArg_Parser _parser = {
706 .keywords = _keywords,
707 .fname = "depr_star_pos0_len1",
708 .kwtuple = KWTUPLE,
709 };
710 #undef KWTUPLE
711 PyObject *argsbuf[1];
712 PyObject *a;
713
714 if (nargs == 1) {
715 if (PyErr_WarnEx(PyExc_DeprecationWarning,
716 "Passing positional arguments to depr_star_pos0_len1() is "
717 "deprecated. Parameter 'a' will become a keyword-only parameter "
718 "in Python 3.14.", 1))
719 {
720 goto exit;
721 }
722 }
723 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 1, 0, argsbuf);
724 if (!args) {
725 goto exit;
726 }
727 a = args[0];
728 return_value = depr_star_pos0_len1_impl(module, a);
729
730 exit:
731 return return_value;
732 }
733
734 PyDoc_STRVAR(depr_star_pos0_len2__doc__,
735 "depr_star_pos0_len2($module, /, a, b)\n"
736 "--\n"
737 "\n"
738 "Note: Passing positional arguments to depr_star_pos0_len2() is\n"
739 "deprecated. Parameters \'a\' and \'b\' will become keyword-only parameters\n"
740 "in Python 3.14.\n"
741 "");
742
743 #define DEPR_STAR_POS0_LEN2_METHODDEF \
744 {"depr_star_pos0_len2", _PyCFunction_CAST(depr_star_pos0_len2), METH_FASTCALL|METH_KEYWORDS, depr_star_pos0_len2__doc__},
745
746 static PyObject *
747 depr_star_pos0_len2_impl(PyObject *module, PyObject *a, PyObject *b);
748
749 // Emit compiler warnings when we get to Python 3.14.
750 #if PY_VERSION_HEX >= 0x030e00C0
751 # error "Update the clinic input of 'depr_star_pos0_len2'."
752 #elif PY_VERSION_HEX >= 0x030e00A0
753 # ifdef _MSC_VER
754 # pragma message ("Update the clinic input of 'depr_star_pos0_len2'.")
755 # else
756 # warning "Update the clinic input of 'depr_star_pos0_len2'."
757 # endif
758 #endif
759
760 static PyObject *
761 depr_star_pos0_len2(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
762 {
763 PyObject *return_value = NULL;
764 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
765
766 #define NUM_KEYWORDS 2
767 static struct {
768 PyGC_Head _this_is_not_used;
769 PyObject_VAR_HEAD
770 PyObject *ob_item[NUM_KEYWORDS];
771 } _kwtuple = {
772 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
773 .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), },
774 };
775 #undef NUM_KEYWORDS
776 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
777
778 #else // !Py_BUILD_CORE
779 # define KWTUPLE NULL
780 #endif // !Py_BUILD_CORE
781
782 static const char * const _keywords[] = {"a", "b", NULL};
783 static _PyArg_Parser _parser = {
784 .keywords = _keywords,
785 .fname = "depr_star_pos0_len2",
786 .kwtuple = KWTUPLE,
787 };
788 #undef KWTUPLE
789 PyObject *argsbuf[2];
790 PyObject *a;
791 PyObject *b;
792
793 if (nargs > 0 && nargs <= 2) {
794 if (PyErr_WarnEx(PyExc_DeprecationWarning,
795 "Passing positional arguments to depr_star_pos0_len2() is "
796 "deprecated. Parameters 'a' and 'b' will become keyword-only "
797 "parameters in Python 3.14.", 1))
798 {
799 goto exit;
800 }
801 }
802 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 2, 2, 0, argsbuf);
803 if (!args) {
804 goto exit;
805 }
806 a = args[0];
807 b = args[1];
808 return_value = depr_star_pos0_len2_impl(module, a, b);
809
810 exit:
811 return return_value;
812 }
813
814 PyDoc_STRVAR(depr_star_pos0_len3_with_kwd__doc__,
815 "depr_star_pos0_len3_with_kwd($module, /, a, b, c, *, d)\n"
816 "--\n"
817 "\n"
818 "Note: Passing positional arguments to depr_star_pos0_len3_with_kwd()\n"
819 "is deprecated. Parameters \'a\', \'b\' and \'c\' will become keyword-only\n"
820 "parameters in Python 3.14.\n"
821 "");
822
823 #define DEPR_STAR_POS0_LEN3_WITH_KWD_METHODDEF \
824 {"depr_star_pos0_len3_with_kwd", _PyCFunction_CAST(depr_star_pos0_len3_with_kwd), METH_FASTCALL|METH_KEYWORDS, depr_star_pos0_len3_with_kwd__doc__},
825
826 static PyObject *
827 depr_star_pos0_len3_with_kwd_impl(PyObject *module, PyObject *a, PyObject *b,
828 PyObject *c, PyObject *d);
829
830 // Emit compiler warnings when we get to Python 3.14.
831 #if PY_VERSION_HEX >= 0x030e00C0
832 # error "Update the clinic input of 'depr_star_pos0_len3_with_kwd'."
833 #elif PY_VERSION_HEX >= 0x030e00A0
834 # ifdef _MSC_VER
835 # pragma message ("Update the clinic input of 'depr_star_pos0_len3_with_kwd'.")
836 # else
837 # warning "Update the clinic input of 'depr_star_pos0_len3_with_kwd'."
838 # endif
839 #endif
840
841 static PyObject *
842 depr_star_pos0_len3_with_kwd(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
843 {
844 PyObject *return_value = NULL;
845 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
846
847 #define NUM_KEYWORDS 4
848 static struct {
849 PyGC_Head _this_is_not_used;
850 PyObject_VAR_HEAD
851 PyObject *ob_item[NUM_KEYWORDS];
852 } _kwtuple = {
853 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
854 .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), },
855 };
856 #undef NUM_KEYWORDS
857 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
858
859 #else // !Py_BUILD_CORE
860 # define KWTUPLE NULL
861 #endif // !Py_BUILD_CORE
862
863 static const char * const _keywords[] = {"a", "b", "c", "d", NULL};
864 static _PyArg_Parser _parser = {
865 .keywords = _keywords,
866 .fname = "depr_star_pos0_len3_with_kwd",
867 .kwtuple = KWTUPLE,
868 };
869 #undef KWTUPLE
870 PyObject *argsbuf[4];
871 PyObject *a;
872 PyObject *b;
873 PyObject *c;
874 PyObject *d;
875
876 if (nargs > 0 && nargs <= 3) {
877 if (PyErr_WarnEx(PyExc_DeprecationWarning,
878 "Passing positional arguments to depr_star_pos0_len3_with_kwd() "
879 "is deprecated. Parameters 'a', 'b' and 'c' will become "
880 "keyword-only parameters in Python 3.14.", 1))
881 {
882 goto exit;
883 }
884 }
885 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 3, 3, 1, argsbuf);
886 if (!args) {
887 goto exit;
888 }
889 a = args[0];
890 b = args[1];
891 c = args[2];
892 d = args[3];
893 return_value = depr_star_pos0_len3_with_kwd_impl(module, a, b, c, d);
894
895 exit:
896 return return_value;
897 }
898
899 PyDoc_STRVAR(depr_star_pos1_len1_opt__doc__,
900 "depr_star_pos1_len1_opt($module, /, a, b=None)\n"
901 "--\n"
902 "\n"
903 "Note: Passing 2 positional arguments to depr_star_pos1_len1_opt() is\n"
904 "deprecated. Parameter \'b\' will become a keyword-only parameter in\n"
905 "Python 3.14.\n"
906 "");
907
908 #define DEPR_STAR_POS1_LEN1_OPT_METHODDEF \
909 {"depr_star_pos1_len1_opt", _PyCFunction_CAST(depr_star_pos1_len1_opt), METH_FASTCALL|METH_KEYWORDS, depr_star_pos1_len1_opt__doc__},
910
911 static PyObject *
912 depr_star_pos1_len1_opt_impl(PyObject *module, PyObject *a, PyObject *b);
913
914 // Emit compiler warnings when we get to Python 3.14.
915 #if PY_VERSION_HEX >= 0x030e00C0
916 # error "Update the clinic input of 'depr_star_pos1_len1_opt'."
917 #elif PY_VERSION_HEX >= 0x030e00A0
918 # ifdef _MSC_VER
919 # pragma message ("Update the clinic input of 'depr_star_pos1_len1_opt'.")
920 # else
921 # warning "Update the clinic input of 'depr_star_pos1_len1_opt'."
922 # endif
923 #endif
924
925 static PyObject *
926 depr_star_pos1_len1_opt(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
927 {
928 PyObject *return_value = NULL;
929 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
930
931 #define NUM_KEYWORDS 2
932 static struct {
933 PyGC_Head _this_is_not_used;
934 PyObject_VAR_HEAD
935 PyObject *ob_item[NUM_KEYWORDS];
936 } _kwtuple = {
937 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
938 .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), },
939 };
940 #undef NUM_KEYWORDS
941 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
942
943 #else // !Py_BUILD_CORE
944 # define KWTUPLE NULL
945 #endif // !Py_BUILD_CORE
946
947 static const char * const _keywords[] = {"a", "b", NULL};
948 static _PyArg_Parser _parser = {
949 .keywords = _keywords,
950 .fname = "depr_star_pos1_len1_opt",
951 .kwtuple = KWTUPLE,
952 };
953 #undef KWTUPLE
954 PyObject *argsbuf[2];
955 Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 1;
956 PyObject *a;
957 PyObject *b = Py_None;
958
959 if (nargs == 2) {
960 if (PyErr_WarnEx(PyExc_DeprecationWarning,
961 "Passing 2 positional arguments to depr_star_pos1_len1_opt() is "
962 "deprecated. Parameter 'b' will become a keyword-only parameter "
963 "in Python 3.14.", 1))
964 {
965 goto exit;
966 }
967 }
968 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 2, 0, argsbuf);
969 if (!args) {
970 goto exit;
971 }
972 a = args[0];
973 if (!noptargs) {
974 goto skip_optional_pos;
975 }
976 b = args[1];
977 skip_optional_pos:
978 return_value = depr_star_pos1_len1_opt_impl(module, a, b);
979
980 exit:
981 return return_value;
982 }
983
984 PyDoc_STRVAR(depr_star_pos1_len1__doc__,
985 "depr_star_pos1_len1($module, /, a, b)\n"
986 "--\n"
987 "\n"
988 "Note: Passing 2 positional arguments to depr_star_pos1_len1() is\n"
989 "deprecated. Parameter \'b\' will become a keyword-only parameter in\n"
990 "Python 3.14.\n"
991 "");
992
993 #define DEPR_STAR_POS1_LEN1_METHODDEF \
994 {"depr_star_pos1_len1", _PyCFunction_CAST(depr_star_pos1_len1), METH_FASTCALL|METH_KEYWORDS, depr_star_pos1_len1__doc__},
995
996 static PyObject *
997 depr_star_pos1_len1_impl(PyObject *module, PyObject *a, PyObject *b);
998
999 // Emit compiler warnings when we get to Python 3.14.
1000 #if PY_VERSION_HEX >= 0x030e00C0
1001 # error "Update the clinic input of 'depr_star_pos1_len1'."
1002 #elif PY_VERSION_HEX >= 0x030e00A0
1003 # ifdef _MSC_VER
1004 # pragma message ("Update the clinic input of 'depr_star_pos1_len1'.")
1005 # else
1006 # warning "Update the clinic input of 'depr_star_pos1_len1'."
1007 # endif
1008 #endif
1009
1010 static PyObject *
1011 depr_star_pos1_len1(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
1012 {
1013 PyObject *return_value = NULL;
1014 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
1015
1016 #define NUM_KEYWORDS 2
1017 static struct {
1018 PyGC_Head _this_is_not_used;
1019 PyObject_VAR_HEAD
1020 PyObject *ob_item[NUM_KEYWORDS];
1021 } _kwtuple = {
1022 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
1023 .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), },
1024 };
1025 #undef NUM_KEYWORDS
1026 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
1027
1028 #else // !Py_BUILD_CORE
1029 # define KWTUPLE NULL
1030 #endif // !Py_BUILD_CORE
1031
1032 static const char * const _keywords[] = {"a", "b", NULL};
1033 static _PyArg_Parser _parser = {
1034 .keywords = _keywords,
1035 .fname = "depr_star_pos1_len1",
1036 .kwtuple = KWTUPLE,
1037 };
1038 #undef KWTUPLE
1039 PyObject *argsbuf[2];
1040 PyObject *a;
1041 PyObject *b;
1042
1043 if (nargs == 2) {
1044 if (PyErr_WarnEx(PyExc_DeprecationWarning,
1045 "Passing 2 positional arguments to depr_star_pos1_len1() is "
1046 "deprecated. Parameter 'b' will become a keyword-only parameter "
1047 "in Python 3.14.", 1))
1048 {
1049 goto exit;
1050 }
1051 }
1052 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 2, 2, 0, argsbuf);
1053 if (!args) {
1054 goto exit;
1055 }
1056 a = args[0];
1057 b = args[1];
1058 return_value = depr_star_pos1_len1_impl(module, a, b);
1059
1060 exit:
1061 return return_value;
1062 }
1063
1064 PyDoc_STRVAR(depr_star_pos1_len2_with_kwd__doc__,
1065 "depr_star_pos1_len2_with_kwd($module, /, a, b, c, *, d)\n"
1066 "--\n"
1067 "\n"
1068 "Note: Passing more than 1 positional argument to\n"
1069 "depr_star_pos1_len2_with_kwd() is deprecated. Parameters \'b\' and \'c\'\n"
1070 "will become keyword-only parameters in Python 3.14.\n"
1071 "");
1072
1073 #define DEPR_STAR_POS1_LEN2_WITH_KWD_METHODDEF \
1074 {"depr_star_pos1_len2_with_kwd", _PyCFunction_CAST(depr_star_pos1_len2_with_kwd), METH_FASTCALL|METH_KEYWORDS, depr_star_pos1_len2_with_kwd__doc__},
1075
1076 static PyObject *
1077 depr_star_pos1_len2_with_kwd_impl(PyObject *module, PyObject *a, PyObject *b,
1078 PyObject *c, PyObject *d);
1079
1080 // Emit compiler warnings when we get to Python 3.14.
1081 #if PY_VERSION_HEX >= 0x030e00C0
1082 # error "Update the clinic input of 'depr_star_pos1_len2_with_kwd'."
1083 #elif PY_VERSION_HEX >= 0x030e00A0
1084 # ifdef _MSC_VER
1085 # pragma message ("Update the clinic input of 'depr_star_pos1_len2_with_kwd'.")
1086 # else
1087 # warning "Update the clinic input of 'depr_star_pos1_len2_with_kwd'."
1088 # endif
1089 #endif
1090
1091 static PyObject *
1092 depr_star_pos1_len2_with_kwd(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
1093 {
1094 PyObject *return_value = NULL;
1095 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
1096
1097 #define NUM_KEYWORDS 4
1098 static struct {
1099 PyGC_Head _this_is_not_used;
1100 PyObject_VAR_HEAD
1101 PyObject *ob_item[NUM_KEYWORDS];
1102 } _kwtuple = {
1103 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
1104 .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), },
1105 };
1106 #undef NUM_KEYWORDS
1107 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
1108
1109 #else // !Py_BUILD_CORE
1110 # define KWTUPLE NULL
1111 #endif // !Py_BUILD_CORE
1112
1113 static const char * const _keywords[] = {"a", "b", "c", "d", NULL};
1114 static _PyArg_Parser _parser = {
1115 .keywords = _keywords,
1116 .fname = "depr_star_pos1_len2_with_kwd",
1117 .kwtuple = KWTUPLE,
1118 };
1119 #undef KWTUPLE
1120 PyObject *argsbuf[4];
1121 PyObject *a;
1122 PyObject *b;
1123 PyObject *c;
1124 PyObject *d;
1125
1126 if (nargs > 1 && nargs <= 3) {
1127 if (PyErr_WarnEx(PyExc_DeprecationWarning,
1128 "Passing more than 1 positional argument to "
1129 "depr_star_pos1_len2_with_kwd() is deprecated. Parameters 'b' and"
1130 " 'c' will become keyword-only parameters in Python 3.14.", 1))
1131 {
1132 goto exit;
1133 }
1134 }
1135 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 3, 3, 1, argsbuf);
1136 if (!args) {
1137 goto exit;
1138 }
1139 a = args[0];
1140 b = args[1];
1141 c = args[2];
1142 d = args[3];
1143 return_value = depr_star_pos1_len2_with_kwd_impl(module, a, b, c, d);
1144
1145 exit:
1146 return return_value;
1147 }
1148
1149 PyDoc_STRVAR(depr_star_pos2_len1__doc__,
1150 "depr_star_pos2_len1($module, /, a, b, c)\n"
1151 "--\n"
1152 "\n"
1153 "Note: Passing 3 positional arguments to depr_star_pos2_len1() is\n"
1154 "deprecated. Parameter \'c\' will become a keyword-only parameter in\n"
1155 "Python 3.14.\n"
1156 "");
1157
1158 #define DEPR_STAR_POS2_LEN1_METHODDEF \
1159 {"depr_star_pos2_len1", _PyCFunction_CAST(depr_star_pos2_len1), METH_FASTCALL|METH_KEYWORDS, depr_star_pos2_len1__doc__},
1160
1161 static PyObject *
1162 depr_star_pos2_len1_impl(PyObject *module, PyObject *a, PyObject *b,
1163 PyObject *c);
1164
1165 // Emit compiler warnings when we get to Python 3.14.
1166 #if PY_VERSION_HEX >= 0x030e00C0
1167 # error "Update the clinic input of 'depr_star_pos2_len1'."
1168 #elif PY_VERSION_HEX >= 0x030e00A0
1169 # ifdef _MSC_VER
1170 # pragma message ("Update the clinic input of 'depr_star_pos2_len1'.")
1171 # else
1172 # warning "Update the clinic input of 'depr_star_pos2_len1'."
1173 # endif
1174 #endif
1175
1176 static PyObject *
1177 depr_star_pos2_len1(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
1178 {
1179 PyObject *return_value = NULL;
1180 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
1181
1182 #define NUM_KEYWORDS 3
1183 static struct {
1184 PyGC_Head _this_is_not_used;
1185 PyObject_VAR_HEAD
1186 PyObject *ob_item[NUM_KEYWORDS];
1187 } _kwtuple = {
1188 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
1189 .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), },
1190 };
1191 #undef NUM_KEYWORDS
1192 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
1193
1194 #else // !Py_BUILD_CORE
1195 # define KWTUPLE NULL
1196 #endif // !Py_BUILD_CORE
1197
1198 static const char * const _keywords[] = {"a", "b", "c", NULL};
1199 static _PyArg_Parser _parser = {
1200 .keywords = _keywords,
1201 .fname = "depr_star_pos2_len1",
1202 .kwtuple = KWTUPLE,
1203 };
1204 #undef KWTUPLE
1205 PyObject *argsbuf[3];
1206 PyObject *a;
1207 PyObject *b;
1208 PyObject *c;
1209
1210 if (nargs == 3) {
1211 if (PyErr_WarnEx(PyExc_DeprecationWarning,
1212 "Passing 3 positional arguments to depr_star_pos2_len1() is "
1213 "deprecated. Parameter 'c' will become a keyword-only parameter "
1214 "in Python 3.14.", 1))
1215 {
1216 goto exit;
1217 }
1218 }
1219 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 3, 3, 0, argsbuf);
1220 if (!args) {
1221 goto exit;
1222 }
1223 a = args[0];
1224 b = args[1];
1225 c = args[2];
1226 return_value = depr_star_pos2_len1_impl(module, a, b, c);
1227
1228 exit:
1229 return return_value;
1230 }
1231
1232 PyDoc_STRVAR(depr_star_pos2_len2__doc__,
1233 "depr_star_pos2_len2($module, /, a, b, c, d)\n"
1234 "--\n"
1235 "\n"
1236 "Note: Passing more than 2 positional arguments to\n"
1237 "depr_star_pos2_len2() is deprecated. Parameters \'c\' and \'d\' will\n"
1238 "become keyword-only parameters in Python 3.14.\n"
1239 "");
1240
1241 #define DEPR_STAR_POS2_LEN2_METHODDEF \
1242 {"depr_star_pos2_len2", _PyCFunction_CAST(depr_star_pos2_len2), METH_FASTCALL|METH_KEYWORDS, depr_star_pos2_len2__doc__},
1243
1244 static PyObject *
1245 depr_star_pos2_len2_impl(PyObject *module, PyObject *a, PyObject *b,
1246 PyObject *c, PyObject *d);
1247
1248 // Emit compiler warnings when we get to Python 3.14.
1249 #if PY_VERSION_HEX >= 0x030e00C0
1250 # error "Update the clinic input of 'depr_star_pos2_len2'."
1251 #elif PY_VERSION_HEX >= 0x030e00A0
1252 # ifdef _MSC_VER
1253 # pragma message ("Update the clinic input of 'depr_star_pos2_len2'.")
1254 # else
1255 # warning "Update the clinic input of 'depr_star_pos2_len2'."
1256 # endif
1257 #endif
1258
1259 static PyObject *
1260 depr_star_pos2_len2(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
1261 {
1262 PyObject *return_value = NULL;
1263 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
1264
1265 #define NUM_KEYWORDS 4
1266 static struct {
1267 PyGC_Head _this_is_not_used;
1268 PyObject_VAR_HEAD
1269 PyObject *ob_item[NUM_KEYWORDS];
1270 } _kwtuple = {
1271 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
1272 .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), },
1273 };
1274 #undef NUM_KEYWORDS
1275 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
1276
1277 #else // !Py_BUILD_CORE
1278 # define KWTUPLE NULL
1279 #endif // !Py_BUILD_CORE
1280
1281 static const char * const _keywords[] = {"a", "b", "c", "d", NULL};
1282 static _PyArg_Parser _parser = {
1283 .keywords = _keywords,
1284 .fname = "depr_star_pos2_len2",
1285 .kwtuple = KWTUPLE,
1286 };
1287 #undef KWTUPLE
1288 PyObject *argsbuf[4];
1289 PyObject *a;
1290 PyObject *b;
1291 PyObject *c;
1292 PyObject *d;
1293
1294 if (nargs > 2 && nargs <= 4) {
1295 if (PyErr_WarnEx(PyExc_DeprecationWarning,
1296 "Passing more than 2 positional arguments to "
1297 "depr_star_pos2_len2() is deprecated. Parameters 'c' and 'd' will"
1298 " become keyword-only parameters in Python 3.14.", 1))
1299 {
1300 goto exit;
1301 }
1302 }
1303 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 4, 4, 0, argsbuf);
1304 if (!args) {
1305 goto exit;
1306 }
1307 a = args[0];
1308 b = args[1];
1309 c = args[2];
1310 d = args[3];
1311 return_value = depr_star_pos2_len2_impl(module, a, b, c, d);
1312
1313 exit:
1314 return return_value;
1315 }
1316
1317 PyDoc_STRVAR(depr_star_pos2_len2_with_kwd__doc__,
1318 "depr_star_pos2_len2_with_kwd($module, /, a, b, c, d, *, e)\n"
1319 "--\n"
1320 "\n"
1321 "Note: Passing more than 2 positional arguments to\n"
1322 "depr_star_pos2_len2_with_kwd() is deprecated. Parameters \'c\' and \'d\'\n"
1323 "will become keyword-only parameters in Python 3.14.\n"
1324 "");
1325
1326 #define DEPR_STAR_POS2_LEN2_WITH_KWD_METHODDEF \
1327 {"depr_star_pos2_len2_with_kwd", _PyCFunction_CAST(depr_star_pos2_len2_with_kwd), METH_FASTCALL|METH_KEYWORDS, depr_star_pos2_len2_with_kwd__doc__},
1328
1329 static PyObject *
1330 depr_star_pos2_len2_with_kwd_impl(PyObject *module, PyObject *a, PyObject *b,
1331 PyObject *c, PyObject *d, PyObject *e);
1332
1333 // Emit compiler warnings when we get to Python 3.14.
1334 #if PY_VERSION_HEX >= 0x030e00C0
1335 # error "Update the clinic input of 'depr_star_pos2_len2_with_kwd'."
1336 #elif PY_VERSION_HEX >= 0x030e00A0
1337 # ifdef _MSC_VER
1338 # pragma message ("Update the clinic input of 'depr_star_pos2_len2_with_kwd'.")
1339 # else
1340 # warning "Update the clinic input of 'depr_star_pos2_len2_with_kwd'."
1341 # endif
1342 #endif
1343
1344 static PyObject *
1345 depr_star_pos2_len2_with_kwd(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
1346 {
1347 PyObject *return_value = NULL;
1348 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
1349
1350 #define NUM_KEYWORDS 5
1351 static struct {
1352 PyGC_Head _this_is_not_used;
1353 PyObject_VAR_HEAD
1354 PyObject *ob_item[NUM_KEYWORDS];
1355 } _kwtuple = {
1356 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
1357 .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), _Py_LATIN1_CHR('e'), },
1358 };
1359 #undef NUM_KEYWORDS
1360 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
1361
1362 #else // !Py_BUILD_CORE
1363 # define KWTUPLE NULL
1364 #endif // !Py_BUILD_CORE
1365
1366 static const char * const _keywords[] = {"a", "b", "c", "d", "e", NULL};
1367 static _PyArg_Parser _parser = {
1368 .keywords = _keywords,
1369 .fname = "depr_star_pos2_len2_with_kwd",
1370 .kwtuple = KWTUPLE,
1371 };
1372 #undef KWTUPLE
1373 PyObject *argsbuf[5];
1374 PyObject *a;
1375 PyObject *b;
1376 PyObject *c;
1377 PyObject *d;
1378 PyObject *e;
1379
1380 if (nargs > 2 && nargs <= 4) {
1381 if (PyErr_WarnEx(PyExc_DeprecationWarning,
1382 "Passing more than 2 positional arguments to "
1383 "depr_star_pos2_len2_with_kwd() is deprecated. Parameters 'c' and"
1384 " 'd' will become keyword-only parameters in Python 3.14.", 1))
1385 {
1386 goto exit;
1387 }
1388 }
1389 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 4, 4, 1, argsbuf);
1390 if (!args) {
1391 goto exit;
1392 }
1393 a = args[0];
1394 b = args[1];
1395 c = args[2];
1396 d = args[3];
1397 e = args[4];
1398 return_value = depr_star_pos2_len2_with_kwd_impl(module, a, b, c, d, e);
1399
1400 exit:
1401 return return_value;
1402 }
1403
1404 PyDoc_STRVAR(depr_star_noinline__doc__,
1405 "depr_star_noinline($module, /, a, b, c=None, *, d=\'\')\n"
1406 "--\n"
1407 "\n"
1408 "Note: Passing more than 1 positional argument to depr_star_noinline()\n"
1409 "is deprecated. Parameters \'b\' and \'c\' will become keyword-only\n"
1410 "parameters in Python 3.14.\n"
1411 "");
1412
1413 #define DEPR_STAR_NOINLINE_METHODDEF \
1414 {"depr_star_noinline", _PyCFunction_CAST(depr_star_noinline), METH_FASTCALL|METH_KEYWORDS, depr_star_noinline__doc__},
1415
1416 static PyObject *
1417 depr_star_noinline_impl(PyObject *module, PyObject *a, PyObject *b,
1418 PyObject *c, const char *d, Py_ssize_t d_length);
1419
1420 // Emit compiler warnings when we get to Python 3.14.
1421 #if PY_VERSION_HEX >= 0x030e00C0
1422 # error "Update the clinic input of 'depr_star_noinline'."
1423 #elif PY_VERSION_HEX >= 0x030e00A0
1424 # ifdef _MSC_VER
1425 # pragma message ("Update the clinic input of 'depr_star_noinline'.")
1426 # else
1427 # warning "Update the clinic input of 'depr_star_noinline'."
1428 # endif
1429 #endif
1430
1431 static PyObject *
1432 depr_star_noinline(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
1433 {
1434 PyObject *return_value = NULL;
1435 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
1436
1437 #define NUM_KEYWORDS 4
1438 static struct {
1439 PyGC_Head _this_is_not_used;
1440 PyObject_VAR_HEAD
1441 PyObject *ob_item[NUM_KEYWORDS];
1442 } _kwtuple = {
1443 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
1444 .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), },
1445 };
1446 #undef NUM_KEYWORDS
1447 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
1448
1449 #else // !Py_BUILD_CORE
1450 # define KWTUPLE NULL
1451 #endif // !Py_BUILD_CORE
1452
1453 static const char * const _keywords[] = {"a", "b", "c", "d", NULL};
1454 static _PyArg_Parser _parser = {
1455 .keywords = _keywords,
1456 .format = "OO|O$s#:depr_star_noinline",
1457 .kwtuple = KWTUPLE,
1458 };
1459 #undef KWTUPLE
1460 PyObject *a;
1461 PyObject *b;
1462 PyObject *c = Py_None;
1463 const char *d = "";
1464 Py_ssize_t d_length;
1465
1466 if (nargs > 1 && nargs <= 3) {
1467 if (PyErr_WarnEx(PyExc_DeprecationWarning,
1468 "Passing more than 1 positional argument to depr_star_noinline() "
1469 "is deprecated. Parameters 'b' and 'c' will become keyword-only "
1470 "parameters in Python 3.14.", 1))
1471 {
1472 goto exit;
1473 }
1474 }
1475 if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser,
1476 &a, &b, &c, &d, &d_length)) {
1477 goto exit;
1478 }
1479 return_value = depr_star_noinline_impl(module, a, b, c, d, d_length);
1480
1481 exit:
1482 return return_value;
1483 }
1484
1485 PyDoc_STRVAR(depr_star_multi__doc__,
1486 "depr_star_multi($module, /, a, b, c, d, e, f, g, *, h)\n"
1487 "--\n"
1488 "\n"
1489 "Note: Passing more than 1 positional argument to depr_star_multi() is\n"
1490 "deprecated. Parameter \'b\' will become a keyword-only parameter in\n"
1491 "Python 3.16. Parameters \'c\' and \'d\' will become keyword-only\n"
1492 "parameters in Python 3.15. Parameters \'e\', \'f\' and \'g\' will become\n"
1493 "keyword-only parameters in Python 3.14.\n"
1494 "");
1495
1496 #define DEPR_STAR_MULTI_METHODDEF \
1497 {"depr_star_multi", _PyCFunction_CAST(depr_star_multi), METH_FASTCALL|METH_KEYWORDS, depr_star_multi__doc__},
1498
1499 static PyObject *
1500 depr_star_multi_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c,
1501 PyObject *d, PyObject *e, PyObject *f, PyObject *g,
1502 PyObject *h);
1503
1504 // Emit compiler warnings when we get to Python 3.14.
1505 #if PY_VERSION_HEX >= 0x030e00C0
1506 # error "Update the clinic input of 'depr_star_multi'."
1507 #elif PY_VERSION_HEX >= 0x030e00A0
1508 # ifdef _MSC_VER
1509 # pragma message ("Update the clinic input of 'depr_star_multi'.")
1510 # else
1511 # warning "Update the clinic input of 'depr_star_multi'."
1512 # endif
1513 #endif
1514
1515 static PyObject *
1516 depr_star_multi(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
1517 {
1518 PyObject *return_value = NULL;
1519 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
1520
1521 #define NUM_KEYWORDS 8
1522 static struct {
1523 PyGC_Head _this_is_not_used;
1524 PyObject_VAR_HEAD
1525 PyObject *ob_item[NUM_KEYWORDS];
1526 } _kwtuple = {
1527 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
1528 .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), _Py_LATIN1_CHR('e'), _Py_LATIN1_CHR('f'), _Py_LATIN1_CHR('g'), _Py_LATIN1_CHR('h'), },
1529 };
1530 #undef NUM_KEYWORDS
1531 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
1532
1533 #else // !Py_BUILD_CORE
1534 # define KWTUPLE NULL
1535 #endif // !Py_BUILD_CORE
1536
1537 static const char * const _keywords[] = {"a", "b", "c", "d", "e", "f", "g", "h", NULL};
1538 static _PyArg_Parser _parser = {
1539 .keywords = _keywords,
1540 .fname = "depr_star_multi",
1541 .kwtuple = KWTUPLE,
1542 };
1543 #undef KWTUPLE
1544 PyObject *argsbuf[8];
1545 PyObject *a;
1546 PyObject *b;
1547 PyObject *c;
1548 PyObject *d;
1549 PyObject *e;
1550 PyObject *f;
1551 PyObject *g;
1552 PyObject *h;
1553
1554 if (nargs > 1 && nargs <= 7) {
1555 if (PyErr_WarnEx(PyExc_DeprecationWarning,
1556 "Passing more than 1 positional argument to depr_star_multi() is "
1557 "deprecated. Parameter 'b' will become a keyword-only parameter "
1558 "in Python 3.16. Parameters 'c' and 'd' will become keyword-only "
1559 "parameters in Python 3.15. Parameters 'e', 'f' and 'g' will "
1560 "become keyword-only parameters in Python 3.14.", 1))
1561 {
1562 goto exit;
1563 }
1564 }
1565 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 7, 7, 1, argsbuf);
1566 if (!args) {
1567 goto exit;
1568 }
1569 a = args[0];
1570 b = args[1];
1571 c = args[2];
1572 d = args[3];
1573 e = args[4];
1574 f = args[5];
1575 g = args[6];
1576 h = args[7];
1577 return_value = depr_star_multi_impl(module, a, b, c, d, e, f, g, h);
1578
1579 exit:
1580 return return_value;
1581 }
1582
1583 PyDoc_STRVAR(depr_kwd_required_1__doc__,
1584 "depr_kwd_required_1($module, a, /, b)\n"
1585 "--\n"
1586 "\n"
1587 "Note: Passing keyword argument \'b\' to depr_kwd_required_1() is\n"
1588 "deprecated. Parameter \'b\' will become positional-only in Python 3.14.\n"
1589 "");
1590
1591 #define DEPR_KWD_REQUIRED_1_METHODDEF \
1592 {"depr_kwd_required_1", _PyCFunction_CAST(depr_kwd_required_1), METH_FASTCALL|METH_KEYWORDS, depr_kwd_required_1__doc__},
1593
1594 static PyObject *
1595 depr_kwd_required_1_impl(PyObject *module, PyObject *a, PyObject *b);
1596
1597 // Emit compiler warnings when we get to Python 3.14.
1598 #if PY_VERSION_HEX >= 0x030e00C0
1599 # error "Update the clinic input of 'depr_kwd_required_1'."
1600 #elif PY_VERSION_HEX >= 0x030e00A0
1601 # ifdef _MSC_VER
1602 # pragma message ("Update the clinic input of 'depr_kwd_required_1'.")
1603 # else
1604 # warning "Update the clinic input of 'depr_kwd_required_1'."
1605 # endif
1606 #endif
1607
1608 static PyObject *
1609 depr_kwd_required_1(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
1610 {
1611 PyObject *return_value = NULL;
1612 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
1613
1614 #define NUM_KEYWORDS 1
1615 static struct {
1616 PyGC_Head _this_is_not_used;
1617 PyObject_VAR_HEAD
1618 PyObject *ob_item[NUM_KEYWORDS];
1619 } _kwtuple = {
1620 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
1621 .ob_item = { _Py_LATIN1_CHR('b'), },
1622 };
1623 #undef NUM_KEYWORDS
1624 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
1625
1626 #else // !Py_BUILD_CORE
1627 # define KWTUPLE NULL
1628 #endif // !Py_BUILD_CORE
1629
1630 static const char * const _keywords[] = {"", "b", NULL};
1631 static _PyArg_Parser _parser = {
1632 .keywords = _keywords,
1633 .fname = "depr_kwd_required_1",
1634 .kwtuple = KWTUPLE,
1635 };
1636 #undef KWTUPLE
1637 PyObject *argsbuf[2];
1638 PyObject *a;
1639 PyObject *b;
1640
1641 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 2, 2, 0, argsbuf);
1642 if (!args) {
1643 goto exit;
1644 }
1645 if (nargs < 2) {
1646 if (PyErr_WarnEx(PyExc_DeprecationWarning,
1647 "Passing keyword argument 'b' to depr_kwd_required_1() is "
1648 "deprecated. Parameter 'b' will become positional-only in Python "
1649 "3.14.", 1))
1650 {
1651 goto exit;
1652 }
1653 }
1654 a = args[0];
1655 b = args[1];
1656 return_value = depr_kwd_required_1_impl(module, a, b);
1657
1658 exit:
1659 return return_value;
1660 }
1661
1662 PyDoc_STRVAR(depr_kwd_required_2__doc__,
1663 "depr_kwd_required_2($module, a, /, b, c)\n"
1664 "--\n"
1665 "\n"
1666 "Note: Passing keyword arguments \'b\' and \'c\' to depr_kwd_required_2()\n"
1667 "is deprecated. Parameters \'b\' and \'c\' will become positional-only in\n"
1668 "Python 3.14.\n"
1669 "");
1670
1671 #define DEPR_KWD_REQUIRED_2_METHODDEF \
1672 {"depr_kwd_required_2", _PyCFunction_CAST(depr_kwd_required_2), METH_FASTCALL|METH_KEYWORDS, depr_kwd_required_2__doc__},
1673
1674 static PyObject *
1675 depr_kwd_required_2_impl(PyObject *module, PyObject *a, PyObject *b,
1676 PyObject *c);
1677
1678 // Emit compiler warnings when we get to Python 3.14.
1679 #if PY_VERSION_HEX >= 0x030e00C0
1680 # error "Update the clinic input of 'depr_kwd_required_2'."
1681 #elif PY_VERSION_HEX >= 0x030e00A0
1682 # ifdef _MSC_VER
1683 # pragma message ("Update the clinic input of 'depr_kwd_required_2'.")
1684 # else
1685 # warning "Update the clinic input of 'depr_kwd_required_2'."
1686 # endif
1687 #endif
1688
1689 static PyObject *
1690 depr_kwd_required_2(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
1691 {
1692 PyObject *return_value = NULL;
1693 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
1694
1695 #define NUM_KEYWORDS 2
1696 static struct {
1697 PyGC_Head _this_is_not_used;
1698 PyObject_VAR_HEAD
1699 PyObject *ob_item[NUM_KEYWORDS];
1700 } _kwtuple = {
1701 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
1702 .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), },
1703 };
1704 #undef NUM_KEYWORDS
1705 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
1706
1707 #else // !Py_BUILD_CORE
1708 # define KWTUPLE NULL
1709 #endif // !Py_BUILD_CORE
1710
1711 static const char * const _keywords[] = {"", "b", "c", NULL};
1712 static _PyArg_Parser _parser = {
1713 .keywords = _keywords,
1714 .fname = "depr_kwd_required_2",
1715 .kwtuple = KWTUPLE,
1716 };
1717 #undef KWTUPLE
1718 PyObject *argsbuf[3];
1719 PyObject *a;
1720 PyObject *b;
1721 PyObject *c;
1722
1723 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 3, 3, 0, argsbuf);
1724 if (!args) {
1725 goto exit;
1726 }
1727 if (nargs < 3) {
1728 if (PyErr_WarnEx(PyExc_DeprecationWarning,
1729 "Passing keyword arguments 'b' and 'c' to depr_kwd_required_2() "
1730 "is deprecated. Parameters 'b' and 'c' will become "
1731 "positional-only in Python 3.14.", 1))
1732 {
1733 goto exit;
1734 }
1735 }
1736 a = args[0];
1737 b = args[1];
1738 c = args[2];
1739 return_value = depr_kwd_required_2_impl(module, a, b, c);
1740
1741 exit:
1742 return return_value;
1743 }
1744
1745 PyDoc_STRVAR(depr_kwd_optional_1__doc__,
1746 "depr_kwd_optional_1($module, a, /, b=None)\n"
1747 "--\n"
1748 "\n"
1749 "Note: Passing keyword argument \'b\' to depr_kwd_optional_1() is\n"
1750 "deprecated. Parameter \'b\' will become positional-only in Python 3.14.\n"
1751 "");
1752
1753 #define DEPR_KWD_OPTIONAL_1_METHODDEF \
1754 {"depr_kwd_optional_1", _PyCFunction_CAST(depr_kwd_optional_1), METH_FASTCALL|METH_KEYWORDS, depr_kwd_optional_1__doc__},
1755
1756 static PyObject *
1757 depr_kwd_optional_1_impl(PyObject *module, PyObject *a, PyObject *b);
1758
1759 // Emit compiler warnings when we get to Python 3.14.
1760 #if PY_VERSION_HEX >= 0x030e00C0
1761 # error "Update the clinic input of 'depr_kwd_optional_1'."
1762 #elif PY_VERSION_HEX >= 0x030e00A0
1763 # ifdef _MSC_VER
1764 # pragma message ("Update the clinic input of 'depr_kwd_optional_1'.")
1765 # else
1766 # warning "Update the clinic input of 'depr_kwd_optional_1'."
1767 # endif
1768 #endif
1769
1770 static PyObject *
1771 depr_kwd_optional_1(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
1772 {
1773 PyObject *return_value = NULL;
1774 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
1775
1776 #define NUM_KEYWORDS 1
1777 static struct {
1778 PyGC_Head _this_is_not_used;
1779 PyObject_VAR_HEAD
1780 PyObject *ob_item[NUM_KEYWORDS];
1781 } _kwtuple = {
1782 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
1783 .ob_item = { _Py_LATIN1_CHR('b'), },
1784 };
1785 #undef NUM_KEYWORDS
1786 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
1787
1788 #else // !Py_BUILD_CORE
1789 # define KWTUPLE NULL
1790 #endif // !Py_BUILD_CORE
1791
1792 static const char * const _keywords[] = {"", "b", NULL};
1793 static _PyArg_Parser _parser = {
1794 .keywords = _keywords,
1795 .fname = "depr_kwd_optional_1",
1796 .kwtuple = KWTUPLE,
1797 };
1798 #undef KWTUPLE
1799 PyObject *argsbuf[2];
1800 Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 1;
1801 PyObject *a;
1802 PyObject *b = Py_None;
1803
1804 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 2, 0, argsbuf);
1805 if (!args) {
1806 goto exit;
1807 }
1808 if (kwnames && PyTuple_GET_SIZE(kwnames) && nargs < 2 && args[1]) {
1809 if (PyErr_WarnEx(PyExc_DeprecationWarning,
1810 "Passing keyword argument 'b' to depr_kwd_optional_1() is "
1811 "deprecated. Parameter 'b' will become positional-only in Python "
1812 "3.14.", 1))
1813 {
1814 goto exit;
1815 }
1816 }
1817 a = args[0];
1818 if (!noptargs) {
1819 goto skip_optional_pos;
1820 }
1821 b = args[1];
1822 skip_optional_pos:
1823 return_value = depr_kwd_optional_1_impl(module, a, b);
1824
1825 exit:
1826 return return_value;
1827 }
1828
1829 PyDoc_STRVAR(depr_kwd_optional_2__doc__,
1830 "depr_kwd_optional_2($module, a, /, b=None, c=None)\n"
1831 "--\n"
1832 "\n"
1833 "Note: Passing keyword arguments \'b\' and \'c\' to depr_kwd_optional_2()\n"
1834 "is deprecated. Parameters \'b\' and \'c\' will become positional-only in\n"
1835 "Python 3.14.\n"
1836 "");
1837
1838 #define DEPR_KWD_OPTIONAL_2_METHODDEF \
1839 {"depr_kwd_optional_2", _PyCFunction_CAST(depr_kwd_optional_2), METH_FASTCALL|METH_KEYWORDS, depr_kwd_optional_2__doc__},
1840
1841 static PyObject *
1842 depr_kwd_optional_2_impl(PyObject *module, PyObject *a, PyObject *b,
1843 PyObject *c);
1844
1845 // Emit compiler warnings when we get to Python 3.14.
1846 #if PY_VERSION_HEX >= 0x030e00C0
1847 # error "Update the clinic input of 'depr_kwd_optional_2'."
1848 #elif PY_VERSION_HEX >= 0x030e00A0
1849 # ifdef _MSC_VER
1850 # pragma message ("Update the clinic input of 'depr_kwd_optional_2'.")
1851 # else
1852 # warning "Update the clinic input of 'depr_kwd_optional_2'."
1853 # endif
1854 #endif
1855
1856 static PyObject *
1857 depr_kwd_optional_2(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
1858 {
1859 PyObject *return_value = NULL;
1860 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
1861
1862 #define NUM_KEYWORDS 2
1863 static struct {
1864 PyGC_Head _this_is_not_used;
1865 PyObject_VAR_HEAD
1866 PyObject *ob_item[NUM_KEYWORDS];
1867 } _kwtuple = {
1868 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
1869 .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), },
1870 };
1871 #undef NUM_KEYWORDS
1872 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
1873
1874 #else // !Py_BUILD_CORE
1875 # define KWTUPLE NULL
1876 #endif // !Py_BUILD_CORE
1877
1878 static const char * const _keywords[] = {"", "b", "c", NULL};
1879 static _PyArg_Parser _parser = {
1880 .keywords = _keywords,
1881 .fname = "depr_kwd_optional_2",
1882 .kwtuple = KWTUPLE,
1883 };
1884 #undef KWTUPLE
1885 PyObject *argsbuf[3];
1886 Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 1;
1887 PyObject *a;
1888 PyObject *b = Py_None;
1889 PyObject *c = Py_None;
1890
1891 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 1, 3, 0, argsbuf);
1892 if (!args) {
1893 goto exit;
1894 }
1895 if (kwnames && PyTuple_GET_SIZE(kwnames) && ((nargs < 2 && args[1]) || (nargs < 3 && args[2]))) {
1896 if (PyErr_WarnEx(PyExc_DeprecationWarning,
1897 "Passing keyword arguments 'b' and 'c' to depr_kwd_optional_2() "
1898 "is deprecated. Parameters 'b' and 'c' will become "
1899 "positional-only in Python 3.14.", 1))
1900 {
1901 goto exit;
1902 }
1903 }
1904 a = args[0];
1905 if (!noptargs) {
1906 goto skip_optional_pos;
1907 }
1908 if (args[1]) {
1909 b = args[1];
1910 if (!--noptargs) {
1911 goto skip_optional_pos;
1912 }
1913 }
1914 c = args[2];
1915 skip_optional_pos:
1916 return_value = depr_kwd_optional_2_impl(module, a, b, c);
1917
1918 exit:
1919 return return_value;
1920 }
1921
1922 PyDoc_STRVAR(depr_kwd_optional_3__doc__,
1923 "depr_kwd_optional_3($module, /, a=None, b=None, c=None)\n"
1924 "--\n"
1925 "\n"
1926 "Note: Passing keyword arguments \'a\', \'b\' and \'c\' to\n"
1927 "depr_kwd_optional_3() is deprecated. Parameters \'a\', \'b\' and \'c\' will\n"
1928 "become positional-only in Python 3.14.\n"
1929 "");
1930
1931 #define DEPR_KWD_OPTIONAL_3_METHODDEF \
1932 {"depr_kwd_optional_3", _PyCFunction_CAST(depr_kwd_optional_3), METH_FASTCALL|METH_KEYWORDS, depr_kwd_optional_3__doc__},
1933
1934 static PyObject *
1935 depr_kwd_optional_3_impl(PyObject *module, PyObject *a, PyObject *b,
1936 PyObject *c);
1937
1938 // Emit compiler warnings when we get to Python 3.14.
1939 #if PY_VERSION_HEX >= 0x030e00C0
1940 # error "Update the clinic input of 'depr_kwd_optional_3'."
1941 #elif PY_VERSION_HEX >= 0x030e00A0
1942 # ifdef _MSC_VER
1943 # pragma message ("Update the clinic input of 'depr_kwd_optional_3'.")
1944 # else
1945 # warning "Update the clinic input of 'depr_kwd_optional_3'."
1946 # endif
1947 #endif
1948
1949 static PyObject *
1950 depr_kwd_optional_3(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
1951 {
1952 PyObject *return_value = NULL;
1953 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
1954
1955 #define NUM_KEYWORDS 3
1956 static struct {
1957 PyGC_Head _this_is_not_used;
1958 PyObject_VAR_HEAD
1959 PyObject *ob_item[NUM_KEYWORDS];
1960 } _kwtuple = {
1961 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
1962 .ob_item = { _Py_LATIN1_CHR('a'), _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), },
1963 };
1964 #undef NUM_KEYWORDS
1965 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
1966
1967 #else // !Py_BUILD_CORE
1968 # define KWTUPLE NULL
1969 #endif // !Py_BUILD_CORE
1970
1971 static const char * const _keywords[] = {"a", "b", "c", NULL};
1972 static _PyArg_Parser _parser = {
1973 .keywords = _keywords,
1974 .fname = "depr_kwd_optional_3",
1975 .kwtuple = KWTUPLE,
1976 };
1977 #undef KWTUPLE
1978 PyObject *argsbuf[3];
1979 Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 0;
1980 PyObject *a = Py_None;
1981 PyObject *b = Py_None;
1982 PyObject *c = Py_None;
1983
1984 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 0, 3, 0, argsbuf);
1985 if (!args) {
1986 goto exit;
1987 }
1988 if (kwnames && PyTuple_GET_SIZE(kwnames) && ((nargs < 1 && args[0]) || (nargs < 2 && args[1]) || (nargs < 3 && args[2]))) {
1989 if (PyErr_WarnEx(PyExc_DeprecationWarning,
1990 "Passing keyword arguments 'a', 'b' and 'c' to "
1991 "depr_kwd_optional_3() is deprecated. Parameters 'a', 'b' and 'c'"
1992 " will become positional-only in Python 3.14.", 1))
1993 {
1994 goto exit;
1995 }
1996 }
1997 if (!noptargs) {
1998 goto skip_optional_pos;
1999 }
2000 if (args[0]) {
2001 a = args[0];
2002 if (!--noptargs) {
2003 goto skip_optional_pos;
2004 }
2005 }
2006 if (args[1]) {
2007 b = args[1];
2008 if (!--noptargs) {
2009 goto skip_optional_pos;
2010 }
2011 }
2012 c = args[2];
2013 skip_optional_pos:
2014 return_value = depr_kwd_optional_3_impl(module, a, b, c);
2015
2016 exit:
2017 return return_value;
2018 }
2019
2020 PyDoc_STRVAR(depr_kwd_required_optional__doc__,
2021 "depr_kwd_required_optional($module, a, /, b, c=None)\n"
2022 "--\n"
2023 "\n"
2024 "Note: Passing keyword arguments \'b\' and \'c\' to\n"
2025 "depr_kwd_required_optional() is deprecated. Parameters \'b\' and \'c\'\n"
2026 "will become positional-only in Python 3.14.\n"
2027 "");
2028
2029 #define DEPR_KWD_REQUIRED_OPTIONAL_METHODDEF \
2030 {"depr_kwd_required_optional", _PyCFunction_CAST(depr_kwd_required_optional), METH_FASTCALL|METH_KEYWORDS, depr_kwd_required_optional__doc__},
2031
2032 static PyObject *
2033 depr_kwd_required_optional_impl(PyObject *module, PyObject *a, PyObject *b,
2034 PyObject *c);
2035
2036 // Emit compiler warnings when we get to Python 3.14.
2037 #if PY_VERSION_HEX >= 0x030e00C0
2038 # error "Update the clinic input of 'depr_kwd_required_optional'."
2039 #elif PY_VERSION_HEX >= 0x030e00A0
2040 # ifdef _MSC_VER
2041 # pragma message ("Update the clinic input of 'depr_kwd_required_optional'.")
2042 # else
2043 # warning "Update the clinic input of 'depr_kwd_required_optional'."
2044 # endif
2045 #endif
2046
2047 static PyObject *
2048 depr_kwd_required_optional(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
2049 {
2050 PyObject *return_value = NULL;
2051 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
2052
2053 #define NUM_KEYWORDS 2
2054 static struct {
2055 PyGC_Head _this_is_not_used;
2056 PyObject_VAR_HEAD
2057 PyObject *ob_item[NUM_KEYWORDS];
2058 } _kwtuple = {
2059 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
2060 .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), },
2061 };
2062 #undef NUM_KEYWORDS
2063 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
2064
2065 #else // !Py_BUILD_CORE
2066 # define KWTUPLE NULL
2067 #endif // !Py_BUILD_CORE
2068
2069 static const char * const _keywords[] = {"", "b", "c", NULL};
2070 static _PyArg_Parser _parser = {
2071 .keywords = _keywords,
2072 .fname = "depr_kwd_required_optional",
2073 .kwtuple = KWTUPLE,
2074 };
2075 #undef KWTUPLE
2076 PyObject *argsbuf[3];
2077 Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 2;
2078 PyObject *a;
2079 PyObject *b;
2080 PyObject *c = Py_None;
2081
2082 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 2, 3, 0, argsbuf);
2083 if (!args) {
2084 goto exit;
2085 }
2086 if (kwnames && PyTuple_GET_SIZE(kwnames) && ((nargs < 2) || (nargs < 3 && args[2]))) {
2087 if (PyErr_WarnEx(PyExc_DeprecationWarning,
2088 "Passing keyword arguments 'b' and 'c' to "
2089 "depr_kwd_required_optional() is deprecated. Parameters 'b' and "
2090 "'c' will become positional-only in Python 3.14.", 1))
2091 {
2092 goto exit;
2093 }
2094 }
2095 a = args[0];
2096 b = args[1];
2097 if (!noptargs) {
2098 goto skip_optional_pos;
2099 }
2100 c = args[2];
2101 skip_optional_pos:
2102 return_value = depr_kwd_required_optional_impl(module, a, b, c);
2103
2104 exit:
2105 return return_value;
2106 }
2107
2108 PyDoc_STRVAR(depr_kwd_noinline__doc__,
2109 "depr_kwd_noinline($module, a, /, b, c=None, d=\'\')\n"
2110 "--\n"
2111 "\n"
2112 "Note: Passing keyword arguments \'b\' and \'c\' to depr_kwd_noinline() is\n"
2113 "deprecated. Parameters \'b\' and \'c\' will become positional-only in\n"
2114 "Python 3.14.\n"
2115 "");
2116
2117 #define DEPR_KWD_NOINLINE_METHODDEF \
2118 {"depr_kwd_noinline", _PyCFunction_CAST(depr_kwd_noinline), METH_FASTCALL|METH_KEYWORDS, depr_kwd_noinline__doc__},
2119
2120 static PyObject *
2121 depr_kwd_noinline_impl(PyObject *module, PyObject *a, PyObject *b,
2122 PyObject *c, const char *d, Py_ssize_t d_length);
2123
2124 // Emit compiler warnings when we get to Python 3.14.
2125 #if PY_VERSION_HEX >= 0x030e00C0
2126 # error "Update the clinic input of 'depr_kwd_noinline'."
2127 #elif PY_VERSION_HEX >= 0x030e00A0
2128 # ifdef _MSC_VER
2129 # pragma message ("Update the clinic input of 'depr_kwd_noinline'.")
2130 # else
2131 # warning "Update the clinic input of 'depr_kwd_noinline'."
2132 # endif
2133 #endif
2134
2135 static PyObject *
2136 depr_kwd_noinline(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
2137 {
2138 PyObject *return_value = NULL;
2139 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
2140
2141 #define NUM_KEYWORDS 3
2142 static struct {
2143 PyGC_Head _this_is_not_used;
2144 PyObject_VAR_HEAD
2145 PyObject *ob_item[NUM_KEYWORDS];
2146 } _kwtuple = {
2147 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
2148 .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), },
2149 };
2150 #undef NUM_KEYWORDS
2151 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
2152
2153 #else // !Py_BUILD_CORE
2154 # define KWTUPLE NULL
2155 #endif // !Py_BUILD_CORE
2156
2157 static const char * const _keywords[] = {"", "b", "c", "d", NULL};
2158 static _PyArg_Parser _parser = {
2159 .keywords = _keywords,
2160 .format = "OO|Os#:depr_kwd_noinline",
2161 .kwtuple = KWTUPLE,
2162 };
2163 #undef KWTUPLE
2164 PyObject *a;
2165 PyObject *b;
2166 PyObject *c = Py_None;
2167 const char *d = "";
2168 Py_ssize_t d_length;
2169
2170 if (!_PyArg_ParseStackAndKeywords(args, nargs, kwnames, &_parser,
2171 &a, &b, &c, &d, &d_length)) {
2172 goto exit;
2173 }
2174 if (kwnames && PyTuple_GET_SIZE(kwnames) && ((nargs < 2) || (nargs < 3 && PySequence_Contains(kwnames, _Py_LATIN1_CHR('c'))))) {
2175 if (PyErr_Occurred()) { // PySequence_Contains() above can fail
2176 goto exit;
2177 }
2178 if (PyErr_WarnEx(PyExc_DeprecationWarning,
2179 "Passing keyword arguments 'b' and 'c' to depr_kwd_noinline() is "
2180 "deprecated. Parameters 'b' and 'c' will become positional-only "
2181 "in Python 3.14.", 1))
2182 {
2183 goto exit;
2184 }
2185 }
2186 return_value = depr_kwd_noinline_impl(module, a, b, c, d, d_length);
2187
2188 exit:
2189 return return_value;
2190 }
2191
2192 PyDoc_STRVAR(depr_kwd_multi__doc__,
2193 "depr_kwd_multi($module, a, /, b, c, d, e, f, g, h)\n"
2194 "--\n"
2195 "\n"
2196 "Note: Passing keyword arguments \'b\', \'c\', \'d\', \'e\', \'f\' and \'g\' to\n"
2197 "depr_kwd_multi() is deprecated. Parameter \'b\' will become positional-\n"
2198 "only in Python 3.14. Parameters \'c\' and \'d\' will become positional-\n"
2199 "only in Python 3.15. Parameters \'e\', \'f\' and \'g\' will become\n"
2200 "positional-only in Python 3.16.\n"
2201 "");
2202
2203 #define DEPR_KWD_MULTI_METHODDEF \
2204 {"depr_kwd_multi", _PyCFunction_CAST(depr_kwd_multi), METH_FASTCALL|METH_KEYWORDS, depr_kwd_multi__doc__},
2205
2206 static PyObject *
2207 depr_kwd_multi_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c,
2208 PyObject *d, PyObject *e, PyObject *f, PyObject *g,
2209 PyObject *h);
2210
2211 // Emit compiler warnings when we get to Python 3.14.
2212 #if PY_VERSION_HEX >= 0x030e00C0
2213 # error "Update the clinic input of 'depr_kwd_multi'."
2214 #elif PY_VERSION_HEX >= 0x030e00A0
2215 # ifdef _MSC_VER
2216 # pragma message ("Update the clinic input of 'depr_kwd_multi'.")
2217 # else
2218 # warning "Update the clinic input of 'depr_kwd_multi'."
2219 # endif
2220 #endif
2221
2222 static PyObject *
2223 depr_kwd_multi(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
2224 {
2225 PyObject *return_value = NULL;
2226 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
2227
2228 #define NUM_KEYWORDS 7
2229 static struct {
2230 PyGC_Head _this_is_not_used;
2231 PyObject_VAR_HEAD
2232 PyObject *ob_item[NUM_KEYWORDS];
2233 } _kwtuple = {
2234 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
2235 .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), _Py_LATIN1_CHR('e'), _Py_LATIN1_CHR('f'), _Py_LATIN1_CHR('g'), _Py_LATIN1_CHR('h'), },
2236 };
2237 #undef NUM_KEYWORDS
2238 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
2239
2240 #else // !Py_BUILD_CORE
2241 # define KWTUPLE NULL
2242 #endif // !Py_BUILD_CORE
2243
2244 static const char * const _keywords[] = {"", "b", "c", "d", "e", "f", "g", "h", NULL};
2245 static _PyArg_Parser _parser = {
2246 .keywords = _keywords,
2247 .fname = "depr_kwd_multi",
2248 .kwtuple = KWTUPLE,
2249 };
2250 #undef KWTUPLE
2251 PyObject *argsbuf[8];
2252 PyObject *a;
2253 PyObject *b;
2254 PyObject *c;
2255 PyObject *d;
2256 PyObject *e;
2257 PyObject *f;
2258 PyObject *g;
2259 PyObject *h;
2260
2261 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 8, 8, 0, argsbuf);
2262 if (!args) {
2263 goto exit;
2264 }
2265 if (nargs < 7) {
2266 if (PyErr_WarnEx(PyExc_DeprecationWarning,
2267 "Passing keyword arguments 'b', 'c', 'd', 'e', 'f' and 'g' to "
2268 "depr_kwd_multi() is deprecated. Parameter 'b' will become "
2269 "positional-only in Python 3.14. Parameters 'c' and 'd' will "
2270 "become positional-only in Python 3.15. Parameters 'e', 'f' and "
2271 "'g' will become positional-only in Python 3.16.", 1))
2272 {
2273 goto exit;
2274 }
2275 }
2276 a = args[0];
2277 b = args[1];
2278 c = args[2];
2279 d = args[3];
2280 e = args[4];
2281 f = args[5];
2282 g = args[6];
2283 h = args[7];
2284 return_value = depr_kwd_multi_impl(module, a, b, c, d, e, f, g, h);
2285
2286 exit:
2287 return return_value;
2288 }
2289
2290 PyDoc_STRVAR(depr_multi__doc__,
2291 "depr_multi($module, a, /, b, c, d, e, f, *, g)\n"
2292 "--\n"
2293 "\n"
2294 "Note: Passing keyword arguments \'b\' and \'c\' to depr_multi() is\n"
2295 "deprecated. Parameter \'b\' will become positional-only in Python 3.14.\n"
2296 "Parameter \'c\' will become positional-only in Python 3.15.\n"
2297 "\n"
2298 "\n"
2299 "Note: Passing more than 4 positional arguments to depr_multi() is\n"
2300 "deprecated. Parameter \'e\' will become a keyword-only parameter in\n"
2301 "Python 3.15. Parameter \'f\' will become a keyword-only parameter in\n"
2302 "Python 3.14.\n"
2303 "");
2304
2305 #define DEPR_MULTI_METHODDEF \
2306 {"depr_multi", _PyCFunction_CAST(depr_multi), METH_FASTCALL|METH_KEYWORDS, depr_multi__doc__},
2307
2308 static PyObject *
2309 depr_multi_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c,
2310 PyObject *d, PyObject *e, PyObject *f, PyObject *g);
2311
2312 // Emit compiler warnings when we get to Python 3.14.
2313 #if PY_VERSION_HEX >= 0x030e00C0
2314 # error "Update the clinic input of 'depr_multi'."
2315 #elif PY_VERSION_HEX >= 0x030e00A0
2316 # ifdef _MSC_VER
2317 # pragma message ("Update the clinic input of 'depr_multi'.")
2318 # else
2319 # warning "Update the clinic input of 'depr_multi'."
2320 # endif
2321 #endif
2322
2323 static PyObject *
2324 depr_multi(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
2325 {
2326 PyObject *return_value = NULL;
2327 #if defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_MODULE)
2328
2329 #define NUM_KEYWORDS 6
2330 static struct {
2331 PyGC_Head _this_is_not_used;
2332 PyObject_VAR_HEAD
2333 PyObject *ob_item[NUM_KEYWORDS];
2334 } _kwtuple = {
2335 .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
2336 .ob_item = { _Py_LATIN1_CHR('b'), _Py_LATIN1_CHR('c'), _Py_LATIN1_CHR('d'), _Py_LATIN1_CHR('e'), _Py_LATIN1_CHR('f'), _Py_LATIN1_CHR('g'), },
2337 };
2338 #undef NUM_KEYWORDS
2339 #define KWTUPLE (&_kwtuple.ob_base.ob_base)
2340
2341 #else // !Py_BUILD_CORE
2342 # define KWTUPLE NULL
2343 #endif // !Py_BUILD_CORE
2344
2345 static const char * const _keywords[] = {"", "b", "c", "d", "e", "f", "g", NULL};
2346 static _PyArg_Parser _parser = {
2347 .keywords = _keywords,
2348 .fname = "depr_multi",
2349 .kwtuple = KWTUPLE,
2350 };
2351 #undef KWTUPLE
2352 PyObject *argsbuf[7];
2353 PyObject *a;
2354 PyObject *b;
2355 PyObject *c;
2356 PyObject *d;
2357 PyObject *e;
2358 PyObject *f;
2359 PyObject *g;
2360
2361 if (nargs > 4 && nargs <= 6) {
2362 if (PyErr_WarnEx(PyExc_DeprecationWarning,
2363 "Passing more than 4 positional arguments to depr_multi() is "
2364 "deprecated. Parameter 'e' will become a keyword-only parameter "
2365 "in Python 3.15. Parameter 'f' will become a keyword-only "
2366 "parameter in Python 3.14.", 1))
2367 {
2368 goto exit;
2369 }
2370 }
2371 args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser, 6, 6, 1, argsbuf);
2372 if (!args) {
2373 goto exit;
2374 }
2375 if (nargs < 3) {
2376 if (PyErr_WarnEx(PyExc_DeprecationWarning,
2377 "Passing keyword arguments 'b' and 'c' to depr_multi() is "
2378 "deprecated. Parameter 'b' will become positional-only in Python "
2379 "3.14. Parameter 'c' will become positional-only in Python 3.15.", 1))
2380 {
2381 goto exit;
2382 }
2383 }
2384 a = args[0];
2385 b = args[1];
2386 c = args[2];
2387 d = args[3];
2388 e = args[4];
2389 f = args[5];
2390 g = args[6];
2391 return_value = depr_multi_impl(module, a, b, c, d, e, f, g);
2392
2393 exit:
2394 return return_value;
2395 }
2396 /*[clinic end generated code: output=ca6da2c7137554be input=a9049054013a1b77]*/