There should be one-- and preferably only one --obvious way to do it

Ben Finney ben+python at benfinney.id.au
Wed Mar 3 17:21:32 EST 2010


Lie Ryan <lie.1296 at gmail.com> writes:

> There are lots of reason why bare-except is bad, one being is that it
> makes it way too easy to ignore errors that you don't actually want to
> silence; and given that bare-excepts would prevent Ctrl+C (Interrupt)
> from working. Sorry, but IMHO we shouldn't make syntax sugar for bad
> practices.

Right. Another way I've seen this expressed is “It should be easy to
do the right thing, and awkward to do the wrong thing”.

-- 
 \       “Everyone is entitled to their own opinions, but they are not |
  `\            entitled to their own facts.” —US Senator Pat Moynihan |
_o__)                                                                  |
Ben Finney



More information about the Python-list mailing list