[Python-checkins] python/dist/src/Include frameobject.h,2.36,2.37
mwh@users.sourceforge.net
mwh@users.sourceforge.net
Wed, 11 Sep 2002 08:36:34 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv29209/Include
Modified Files:
frameobject.h
Log Message:
A slight change to SET_LINENO-less tracing.
This makes things a touch more like 2.2. Read the comments in
Python/ceval.c for more details.
Index: frameobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/frameobject.h,v
retrieving revision 2.36
retrieving revision 2.37
diff -C2 -d -r2.36 -r2.37
*** frameobject.h 12 Aug 2002 07:21:56 -0000 2.36
--- frameobject.h 11 Sep 2002 15:36:31 -0000 2.37
***************
*** 30,33 ****
--- 30,35 ----
PyThreadState *f_tstate;
int f_lasti; /* Last instruction if called */
+ /* As of 2.3 f_lineno is only valid when tracing is active (i.e. when
+ f_trace is set) -- at other times use PyCode_Addr2Line instead. */
int f_lineno; /* Current line number */
int f_restricted; /* Flag set if restricted operations