[Python-checkins] python/dist/src/Python traceback.c,2.39,2.40

mwh@users.sourceforge.net mwh@users.sourceforge.net
2003年2月22日 05:07:56 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv20957a
Modified Files:
	traceback.c 
Log Message:
After the removal of SET_LINENO, PyCode_Addr2Line has always been
called to find tb_lineno -- even if Py_OptimizeFlag is true.
So don't call it again when printing the traceback.
Index: traceback.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/traceback.c,v
retrieving revision 2.39
retrieving revision 2.40
diff -C2 -d -r2.39 -r2.40
*** traceback.c	15 Aug 2002 14:59:02 -0000	2.39
--- traceback.c	22 Feb 2003 13:07:53 -0000	2.40
***************
*** 239,245 ****
 	while (tb != NULL && err == 0) {
 		if (depth <= limit) {
- 			if (Py_OptimizeFlag)
- 				tb->tb_lineno = PyCode_Addr2Line(
- 					tb->tb_frame->f_code, tb->tb_lasti);
 			err = tb_displayline(f,
 			 PyString_AsString(
--- 239,242 ----

AltStyle によって変換されたページ (->オリジナル) /