I did something similar to what Andrew suggested. http://python.org/sf/1542451
Could everyone interested take a look and offer more test cases? n -- On 8/17/06, A.M. Kuchling <[EMAIL PROTECTED]> wrote: > On Fri, Aug 18, 2006 at 12:26:33AM +0200, Armin Rigo wrote: > > Without more inspection, I'd say that this looks like it won't do the > > right thing about nested finally's, as in: > > I guess it'll have to loop back up through the block stack: > > for (j=i- 1; j>=0; j--) { > switch (c->u->u_fblock[j].fb_type) { > case FINALLY_TRY: > raise error; > case LOOP: > j=0; /* Exit the loop */ > break; > default: > break; > } > } > > --amk > _______________________________________________ > Python-Dev mailing list > Python-Dev@python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/nnorwitz%40gmail.com > _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com