catching exceptions from an except: block

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Fri Mar 9 05:57:06 EST 2007


En Fri, 09 Mar 2007 07:30:20 -0300, Gerard Flanagan  
<grflanagan 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.

-- 
Gabriel Genellina




More information about the Python-list mailing list