blob: ed6a5643f886601c6b873529bdb5c90714c8de7e [file] [log] [blame]
Serhiy Storchaka18b250f2017-03-19 08:51:07 +02001/*[clinic input]
2preserve
3[clinic start generated code]*/
4
5static PyObject *
6structseq_new_impl(PyTypeObject *type, PyObject *arg, PyObject *dict);
7
8static PyObject *
9structseq_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
10{
11 PyObject *return_value = NULL;
12 static const char * const _keywords[] = {"sequence", "dict", NULL};
13 static _PyArg_Parser _parser = {"O|O:structseq", _keywords, 0};
14 PyObject *arg;
15 PyObject *dict = NULL;
16
17 if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser,
18 &arg, &dict)) {
19 goto exit;
20 }
21 return_value = structseq_new_impl(type, arg, dict);
22
23exit:
24 return return_value;
25}
26/*[clinic end generated code: output=cd643eb89b5d312a input=a9049054013a1b77]*/