A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2010-March/720583.html below:

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

There should be one-- and preferably only one --obvious way to do it There should be one-- and preferably only one --obvious way to do itBen 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4