try/except/finally

Roy Smith roy at panix.com
Sat Jun 7 21:32:00 EDT 2014


In article <mailman.10871.1402189805.18130.python-list at python.org>,
 Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:

> 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.

That's not setting my nose on end either.



More information about the Python-list mailing list