[Python-checkins] python/dist/src/Python newcompile.c, 1.1.2.68,
1.1.2.69
nnorwitz at projects.sourceforge.net
nnorwitz at projects.sourceforge.net
Tue Jan 27 18:21:41 EST 2004
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv434/Python
Modified Files:
Tag: ast-branch
newcompile.c
Log Message:
Get continue to work inside a try
Index: newcompile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/newcompile.c,v
retrieving revision 1.1.2.68
retrieving revision 1.1.2.69
diff -C2 -d -r1.1.2.68 -r1.1.2.69
*** newcompile.c 27 Jan 2004 22:49:04 -0000 1.1.2.68
--- newcompile.c 27 Jan 2004 23:21:38 -0000 1.1.2.69
***************
*** 30,33 ****
--- 30,36 ----
From Python/marshal.c::PyMarshal_ReadLastObjectFromFile()
This looks like it may be related to encoding not being implemented.
+ #: These don't work right (from test_grammar):
+ def f4(two, (compound, (argument, list))): pass
+ def v3(a, (b, c), *rest): return a, b, c, rest
Invalid behaviour:
***************
*** 1128,1132 ****
if (i == -1)
return compiler_error(c, LOOP_ERROR_MSG);
! ADDOP_I(c, CONTINUE_LOOP, c->u->u_fblock[i].fb_block);
break;
case FINALLY_END:
--- 1131,1135 ----
if (i == -1)
return compiler_error(c, LOOP_ERROR_MSG);
! ADDOP_JABS(c, CONTINUE_LOOP, c->u->u_fblock[i].fb_block);
break;
case FINALLY_END:
***************
*** 1135,1140 ****
}
- /* If the continue wasn't an error, it will always end a block. */
- NEW_BLOCK(c);
return 1;
}
--- 1138,1141 ----
More information about the Python-checkins
mailing list