High-level remark: this seems to need more unit tests. Perhaps TDD (test-driven design) would be the best approach to obtaining a correct patch? --Guido On 8/17/06, Armin Rigo <arigo at tunes.org> wrote: > 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 > _______________________________________________ > Python-Dev mailing list > Python-Dev at python.org > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org > -- --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4