[Python-projects] return or break inside a finally
Sylvain Thénault
sylvain.thenault at logilab.fr
Mon Jul 20 18:06:24 CEST 2009
On 18 juillet 13:39, Michael Foord wrote:
> Hello all,
Hi Michael,
> If you include a return or break statement inside the finally clause
> of a try... finally block then exceptions raised in the try clause
> are silently swallowed instead of being re-raised.
>
> This seems like a bad thing (tm) and it would be useful if pylint
> could warn about this. Is there already a pylint checker for this?
nop. I've filed a ticket for this easy & nice to have functionality:
http://www.logilab.org/ticket/9776
cheers,
--
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
CubicWeb, the semantic web framework: http://www.cubicweb.org
More information about the Python-Projects
mailing list