diff options
author | Michael W. Hudson <mwh@python.net> | 2002-09-11 15:36:32 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2002-09-11 15:36:32 (GMT) |
commit | 02ff6a99522bf0c734831841661ebd385ae8c417 (patch) | |
tree | fdb0a6ffa6b397e39fe09f03bee05fa8a650eb0b /Include/frameobject.h | |
parent | 519a342d799a0222ca5290d152ee97d7818a9493 (diff) | |
download | cpython-02ff6a99522bf0c734831841661ebd385ae8c417.zip cpython-02ff6a99522bf0c734831841661ebd385ae8c417.tar.gz cpython-02ff6a99522bf0c734831841661ebd385ae8c417.tar.bz2 |
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.
Diffstat (limited to 'Include/frameobject.h')
-rw-r--r-- | Include/frameobject.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/frameobject.h b/Include/frameobject.h index 958b952..2820e88 100644 --- a/Include/frameobject.h +++ b/Include/frameobject.h @@ -29,6 +29,8 @@ typedef struct _frame { PyObject *f_exc_type, *f_exc_value, *f_exc_traceback; 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 in this scope */ |