From: Guido van Rossum Date: Tue, 14 Jan 1992 18:44:48 +0000 (+0000) Subject: tb_here() can now get the lasti and lineno arguments from the frame. X-Git-Tag: v0.9.8~586 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6515d12b79146445c264de3dd0100c68a8f25cd;p=thirdparty%2FPython%2Fcpython.git tb_here() can now get the lasti and lineno arguments from the frame. --- diff --git a/Python/traceback.c b/Python/traceback.c index f3a1358cf60b..bcec4904e20b 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -112,13 +112,11 @@ newtracebackobject(next, frame, lasti, lineno) static tracebackobject *tb_current = NULL; int -tb_here(frame, lasti, lineno) +tb_here(frame) frameobject *frame; - int lasti; - int lineno; { tracebackobject *tb; - tb = newtracebackobject(tb_current, frame, lasti, lineno); + tb = newtracebackobject(tb_current, frame, frame->f_lasti, frame->f_lineno); if (tb == NULL) return -1; XDECREF(tb_current);