Ian Kelly <ian.g.ke...@gmail.com>:

> The bare raise re-raises the most recent exception that is being
> handled. The "raise e" raises that exception specifically, which is
> not the most recent in the case of a secondary exception.

Scary. That affects all finally clauses. Must remember that.

The pitfall is avoided by using the "except: pass" antipattern but then
you lose exception chaining.


Marko
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to