James Stroud <[EMAIL PROTECTED]> wrote:

> > Reraise = (LookupError, ArithmeticError, AssertionError) # And then some
> > 
> > try:
> >     process_things()
> > except Reraise:
> >     raise
> > except:
> >     log_error()
> > 
> 
> Why catch an error only to re-raise it?

To avoid the following handler[s] -- a pretty common idiom.


Alex
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to