summaryrefslogtreecommitdiffstats
path: root/Modules/_testclinic.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2023-08-21 13:59:58 (GMT)
committerGitHub <noreply@github.com>2023-08-21 13:59:58 (GMT)
commit60942cccb18cfd43240c1a1eb5deab7b31fcb81c (patch)
treeca1623ac6c9afd3ac2e13ee1a2a8f244e61da27d /Modules/_testclinic.c
parent13104f3b7412dce9bf7cfd09bf2d6dad1f3cc2ed (diff)
downloadcpython-60942cccb18cfd43240c1a1eb5deab7b31fcb81c.zip
cpython-60942cccb18cfd43240c1a1eb5deab7b31fcb81c.tar.gz
cpython-60942cccb18cfd43240c1a1eb5deab7b31fcb81c.tar.bz2
gh-95065, gh-107704: Argument Clinic: support multiple '/ [from ...]' and '* [from ...]' markers (GH-108132)
Diffstat (limited to 'Modules/_testclinic.c')
-rw-r--r--Modules/_testclinic.c82
1 files changed, 82 insertions, 0 deletions
diff --git a/Modules/_testclinic.c b/Modules/_testclinic.c
index efec04d..2e0535d 100644
--- a/Modules/_testclinic.c
+++ b/Modules/_testclinic.c
@@ -1581,6 +1581,32 @@ depr_star_noinline_impl(PyObject *module, PyObject *a, PyObject *b,
/*[clinic input]
+depr_star_multi
+ a: object
+ * [from 3.16]
+ b: object
+ * [from 3.15]
+ c: object
+ d: object
+ * [from 3.14]
+ e: object
+ f: object
+ g: object
+ *
+ h: object
+[clinic start generated code]*/
+
+static PyObject *
+depr_star_multi_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c,
+ PyObject *d, PyObject *e, PyObject *f, PyObject *g,
+ PyObject *h)
+/*[clinic end generated code: output=77681653f4202068 input=3ebd05d888a957ea]*/
+{
+ Py_RETURN_NONE;
+}
+
+
+/*[clinic input]
depr_kwd_required_1
a: object
/
@@ -1702,6 +1728,59 @@ depr_kwd_noinline_impl(PyObject *module, PyObject *a, PyObject *b,
Py_RETURN_NONE;
}
+
+/*[clinic input]
+depr_kwd_multi
+ a: object
+ /
+ b: object
+ / [from 3.14]
+ c: object
+ d: object
+ / [from 3.15]
+ e: object
+ f: object
+ g: object
+ / [from 3.16]
+ h: object
+[clinic start generated code]*/
+
+static PyObject *
+depr_kwd_multi_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c,
+ PyObject *d, PyObject *e, PyObject *f, PyObject *g,
+ PyObject *h)
+/*[clinic end generated code: output=ddfbde80fe1942e1 input=7a074e621c79efd7]*/
+{
+ Py_RETURN_NONE;
+}
+
+
+/*[clinic input]
+depr_multi
+ a: object
+ /
+ b: object
+ / [from 3.14]
+ c: object
+ / [from 3.15]
+ d: object
+ * [from 3.15]
+ e: object
+ * [from 3.14]
+ f: object
+ *
+ g: object
+[clinic start generated code]*/
+
+static PyObject *
+depr_multi_impl(PyObject *module, PyObject *a, PyObject *b, PyObject *c,
+ PyObject *d, PyObject *e, PyObject *f, PyObject *g)
+/*[clinic end generated code: output=f81c92852ca2d4ee input=5b847c5e44bedd02]*/
+{
+ Py_RETURN_NONE;
+}
+
+
// Reset PY_VERSION_HEX
#undef PY_VERSION_HEX
#define PY_VERSION_HEX _SAVED_PY_VERSION
@@ -1779,6 +1858,7 @@ static PyMethodDef tester_methods[] = {
DEPR_STAR_POS2_LEN2_METHODDEF
DEPR_STAR_POS2_LEN2_WITH_KWD_METHODDEF
DEPR_STAR_NOINLINE_METHODDEF
+ DEPR_STAR_MULTI_METHODDEF
DEPR_KWD_REQUIRED_1_METHODDEF
DEPR_KWD_REQUIRED_2_METHODDEF
DEPR_KWD_OPTIONAL_1_METHODDEF
@@ -1786,6 +1866,8 @@ static PyMethodDef tester_methods[] = {
DEPR_KWD_OPTIONAL_3_METHODDEF
DEPR_KWD_REQUIRED_OPTIONAL_METHODDEF
DEPR_KWD_NOINLINE_METHODDEF
+ DEPR_KWD_MULTI_METHODDEF
+ DEPR_MULTI_METHODDEF
{NULL, NULL}
};