try/except/finally

Mark Lawrence breamoreboy at yahoo.co.uk
Sat Jun 7 21:10:14 EDT 2014


On 08/06/2014 01:12, Roy Smith wrote:
> In article <mailman.10867.1402184850.18130.python-list at python.org>,
>   Chris Angelico <rosuav at gmail.com> wrote:
>
>> A return statement inside a finally block is code smell.
>
> Not to my nose.  It seems like a perfectly reasonable thing to do.
>

I agree, the code smell is the return in the except block.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com





More information about the Python-list mailing list