summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-14 18:32:11 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-14 18:32:11 (GMT)
commit088bc2ad3cdea6b9e042efe8863828334517f897 (patch)
treefaf002c4015a95bd1288060475182fdfe9645b83 /Objects
parentcff3454effbe323b287f95d29329b70adfa22979 (diff)
downloadcpython-088bc2ad3cdea6b9e042efe8863828334517f897.zip
cpython-088bc2ad3cdea6b9e042efe8863828334517f897.tar.gz
cpython-088bc2ad3cdea6b9e042efe8863828334517f897.tar.bz2
Added f_lasti and f_lineno members.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/frameobject.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index f86b64d..212fbc9 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -38,6 +38,8 @@ static struct memberlist frame_memberlist[] = {
{"f_code", T_OBJECT, OFF(f_code)},
{"f_globals", T_OBJECT, OFF(f_globals)},
{"f_locals", T_OBJECT, OFF(f_locals)},
+ {"f_lasti", T_INT, OFF(f_lasti)},
+ {"f_lineno", T_INT, OFF(f_lineno)},
{NULL} /* Sentinel */
};
@@ -118,6 +120,8 @@ newframeobject(back, code, globals, locals, nvalues, nblocks)
DECREF(f);
f = NULL;
}
+ f->f_lasti = 0;
+ f->f_lineno = -1;
}
return f;
}