[Python-Dev] 2.4 & 2.5 beta 3 crash (original) (raw)

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 @@ compilerusenextblock(c, end); if (!compilerpushfblock(c, FINALLYEND, end)) return 0; + c->cinfinally = 1; VISITSEQ(c, stmt, s->v.TryFinally.finalbody); + c->cinfinally = 0; ADDOP(c, ENDFINALLY); compilerpopfblock(c, FINALLYEND, 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