catching exceptions from an except: block

Gerard Flanagan grflanagan at yahoo.co.uk
Fri Mar 9 06:14:18 EST 2007


On Mar 9, 11:57 am, "Gabriel Genellina" <gagsl-... at yahoo.com.ar>
wrote:
> En Fri, 09 Mar 2007 07:30:20 -0300, Gerard Flanagan
> <grflana... at yahoo.co.uk> escribió:
>
> >> There is a serious flaw on this approach, the function can't return any
> >> false value (it would be treated as a failure).
>
> > I was teaching myself decorators more than anything, so it's not
> > thought out to any extent, but even so I don't think it's a "serious
> > flaw", rather it would be programmer error to use @onfailFalse on a
> > function that may return False. Don't you think?
>
> I thought this was on response to the original problem, not for your own
> problem.
>

Mea culpa.

Gerard






More information about the Python-list mailing list