[Python-checkins] commit of r41743 - in python/trunk: Doc/ref/ref7.tex Misc/NEWS

Neal Norwitz nnorwitz at gmail.com
Sun Dec 18 20:10:53 CET 2005


On 12/18/05, Michael Hudson <mwh at python.net> wrote:
> Neal Norwitz <nnorwitz at gmail.com> writes:
>
> > On 12/17/05, Reinhold Birkenfeld <reinhold-birkenfeld-nospam at wolke7.net> wrote:
> >> neal.norwitz wrote:
> >>
> >> > +\keyword{finally} clause is executed.  If there is a saved exception,
> >> > +it is re-raised at the end of the \keyword{finally} clause.
> >> > +If the \keyword{finally} clause raises another exception or
> >> >  executes a \keyword{return} or \keyword{break} statement, the saved
> >> >  exception is lost.  A \keyword{continue} statement is illegal in the
> >> >  \keyword{finally} clause.  (The reason is a problem with the current
> >> [implementation].
> >>
> >> What's the status of this? Could this be addressed here, too?
> >
> > AFAIK, it's not related to any of these changes.  I think mwh and
> > Armin know more about fixing that problem.
>
> I don't quite know why you think I'd know about this, but I can tell
> you that I have little interest in 'fixing' it -- if you think about

I (mis)remembered some discussion that was probably about try/finally,
but not about this.  Shoot, my plan to dump work on someone else fails
again! :-)

> what a 'continue' would do in a finally: block, you'll realise that
> it's a pretty insane thing to do (or at least I did).

I didn't think about it until you mentioned it.  It does seem odd.  I
don't recall anytime I ever wanted to do finally: continue.

n


More information about the Python-checkins mailing list