[Python-checkins] python/dist/src/Python newcompile.c, 1.1.2.116, 1.1.2.117
nascheme@users.sourceforge.net
nascheme at users.sourceforge.net
Thu Oct 13 01:36:14 CEST 2005
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16154/Python
Modified Files:
Tag: ast-branch
newcompile.c
Log Message:
Update u_lineno when generating code for expressions.
Index: newcompile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/newcompile.c,v
retrieving revision 1.1.2.116
retrieving revision 1.1.2.117
diff -u -d -r1.1.2.116 -r1.1.2.117
--- newcompile.c 12 Oct 2005 03:18:07 -0000 1.1.2.116
+++ newcompile.c 12 Oct 2005 23:36:09 -0000 1.1.2.117
@@ -3344,6 +3344,11 @@
{
int i, n;
+ fprintf(stderr, "compile expr %d lineno %d %d\n", e->kind, e->lineno);
+ if (e->lineno > c->u->u_lineno) {
+ c->u->u_lineno = e->lineno;
+ c->u->u_lineno_set = false;
+ }
switch (e->kind) {
case BoolOp_kind:
return compiler_boolop(c, e);
More information about the Python-checkins
mailing list