blob: 12626c1f6618f6828c4ce93c5c93966cdf8f2eb2 [file] [log] [blame]
Pablo Galindo3f5fc702018-12-30 09:24:03 +00001/*[clinic input]
2preserve
3[clinic start generated code]*/
4
5static PyObject *
6tuplegetter_new_impl(PyTypeObject *type, Py_ssize_t index, PyObject *doc);
7
8static PyObject *
9tuplegetter_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10{
11 PyObject *return_value = NULL;
12 Py_ssize_t index;
13 PyObject *doc;
14
15 if ((type == &tuplegetter_type) &&
16 !_PyArg_NoKeywords("_tuplegetter", kwargs)) {
17 goto exit;
18 }
19 if (!PyArg_ParseTuple(args, "nO:_tuplegetter",
20 &index, &doc)) {
21 goto exit;
22 }
23 return_value = tuplegetter_new_impl(type, index, doc);
24
25exit:
26 return return_value;
27}
28/*[clinic end generated code: output=83746071eacc28d3 input=a9049054013a1b77]*/