[Python-ideas] try-else without except or finally
Dj Gilcrease
digitalxero at gmail.com
Thu Nov 10 21:14:05 CET 2011
More information about the Python-ideas mailing list
Thu Nov 10 21:14:05 CET 2011
- Previous message: [Python-ideas] try-else without except or finally
- Next message: [Python-ideas] try-else without except or finally
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Nov 10, 2011 at 10:53 AM, Guido van Rossum <guido at python.org> wrote: > On Thu, Nov 10, 2011 at 5:35 AM, Rob Cliffe <rob.cliffe at btinternet.com> wrote: >> "except: raise" makes it explicit that an exception is to be propogated. >> Far from being pointless it makes the code much more readable. "Explicit >> is better than implicit." > > +1. Nobody's going to understand try...else... on first reading. > > -- > --Guido van Rossum (python.org/~guido) I agree, try...else... when reading it would be try this block of code, else if it fails do this block of code
- Previous message: [Python-ideas] try-else without except or finally
- Next message: [Python-ideas] try-else without except or finally
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list