1 /*[clinic input]
2 preserve
3 [clinic start generated code]*/
4
5 PyDoc_STRVAR(tb_new__doc__,
6 "TracebackType(tb_next, tb_frame, tb_lasti, tb_lineno)\n"
7 "--\n"
8 "\n"
9 "Create a new traceback object.");
10
11 static PyObject *
12 tb_new_impl(PyTypeObject *type, PyObject *tb_next, PyFrameObject *tb_frame,
13 int tb_lasti, int tb_lineno);
14
15 static PyObject *
tb_new(PyTypeObject * type,PyObject * args,PyObject * kwargs)16 tb_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
17 {
18 PyObject *return_value = NULL;
19 static const char * const _keywords[] = {"tb_next", "tb_frame", "tb_lasti", "tb_lineno", NULL};
20 static _PyArg_Parser _parser = {"OO!ii:TracebackType", _keywords, 0};
21 PyObject *tb_next;
22 PyFrameObject *tb_frame;
23 int tb_lasti;
24 int tb_lineno;
25
26 if (!_PyArg_ParseTupleAndKeywordsFast(args, kwargs, &_parser,
27 &tb_next, &PyFrame_Type, &tb_frame, &tb_lasti, &tb_lineno)) {
28 goto exit;
29 }
30 return_value = tb_new_impl(type, tb_next, tb_frame, tb_lasti, tb_lineno);
31
32 exit:
33 return return_value;
34 }
35 /*[clinic end generated code: output=0133130d7d19556f input=a9049054013a1b77]*/
36