summaryrefslogtreecommitdiffstats
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-04-12 10:56:41 (GMT)
committerGitHub <noreply@github.com>2024-04-12 10:56:41 (GMT)
commit3a8c1ca7e7ce181ddb29c9393171d5c508ce89c8 (patch)
tree9503a1be17bd94635c29b1452afebb5bdb84dba5 /Python/traceback.c
parent94e9c35cd0f2898693bb96eb1579fe0329648fa2 (diff)
downloadcpython-3a8c1ca7e7ce181ddb29c9393171d5c508ce89c8.zip
cpython-3a8c1ca7e7ce181ddb29c9393171d5c508ce89c8.tar.gz
cpython-3a8c1ca7e7ce181ddb29c9393171d5c508ce89c8.tar.bz2
gh-117764: Fix and add signatures for many builtins (GH-117769)
Diffstat (limited to 'Python/traceback.c')
-rw-r--r--Python/traceback.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index 2564a7d..47b77c9 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -34,9 +34,9 @@
extern char* _PyTokenizer_FindEncodingFilename(int, PyObject *);
/*[clinic input]
-class TracebackType "PyTracebackObject *" "&PyTraceback_Type"
+class traceback "PyTracebackObject *" "&PyTraceback_Type"
[clinic start generated code]*/
-/*[clinic end generated code: output=da39a3ee5e6b4b0d input=928fa06c10151120]*/
+/*[clinic end generated code: output=da39a3ee5e6b4b0d input=cf96294b2bebc811]*/
#include "clinic/traceback.c.h"
@@ -63,7 +63,7 @@ tb_create_raw(PyTracebackObject *next, PyFrameObject *frame, int lasti,
/*[clinic input]
@classmethod
-TracebackType.__new__ as tb_new
+traceback.__new__ as tb_new
tb_next: object
tb_frame: object(type='PyFrameObject *', subclass_of='&PyFrame_Type')
@@ -76,7 +76,7 @@ Create a new traceback object.
static PyObject *
tb_new_impl(PyTypeObject *type, PyObject *tb_next, PyFrameObject *tb_frame,
int tb_lasti, int tb_lineno)
-/*[clinic end generated code: output=fa077debd72d861a input=01cbe8ec8783fca7]*/
+/*[clinic end generated code: output=fa077debd72d861a input=b88143145454cb59]*/
{
if (tb_next == Py_None) {
tb_next = NULL;