[Python-Dev] 2.4 & 2.5 beta 3 crash

Armin Rigo arigo at tunes.org
Fri Aug 18 00:26:33 CEST 2006


Hi Neal,

On Wed, Aug 16, 2006 at 10:26:09PM -0700, Neal Norwitz wrote:
> @@ -2367,7 +2374,9 @@
>  	compiler_use_next_block(c, end);
>  	if (!compiler_push_fblock(c, FINALLY_END, end))
>  		return 0;
> +	c->c_in_finally = 1;
>  	VISIT_SEQ(c, stmt, s->v.TryFinally.finalbody);
> +	c->c_in_finally = 0;
>  	ADDOP(c, END_FINALLY);
>  	compiler_pop_fblock(c, FINALLY_END, end);

Without more inspection, I'd say that this looks like it won't do the
right thing about nested finally's, as in:

       ...
   finally:
       try:
           ...
       finally:
           ...
       continue


A bientot,

Armin


More information about the Python-Dev mailing list