[Python-projects] return or break inside a finally
Michael Foord
fuzzyman at voidspace.org.uk
Sat Jul 18 14:39:59 CEST 2009
Hello all,
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?
All the best,
Michael
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
More information about the Python-Projects
mailing list