diff Python/traceback.c @ 597:800cf4086fb3 legacy-trunk

tb_here() can now get the lasti and lineno arguments from the frame.
author Guido van Rossum <guido@python.org>
date Tue, 14 Jan 1992 18:44:48 +0000
parents 06774a94abb5
children 4e2d239dc64c
line wrap: on
line diff
--- a/Python/traceback.c	Tue Jan 14 18:42:53 1992 +0000
+++ b/Python/traceback.c	Tue Jan 14 18:44:48 1992 +0000
@@ -112,13 +112,11 @@
 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);