On Sun, Jun 8, 2014 at 8:49 AM, Ethan Furman <et...@stoneleaf.us> wrote:
> I don't remember if I almost had this in real code or if I learned about it
> first, but it can definitely be a gotcha. It seems to me that if the try
> block exits with an explicit return, and then the finally block exits with
> an explicit return, some kind of error ought to be raised.

I'd go a little simpler: A return statement inside a finally block is
code smell.

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

Reply via email to