
March 20, 2010
12:15 a.m.
On 3/19/2010 4:58 PM, Antoine Pitrou wrote:
Glenn Linderman<v+python<at> g.nevcal.com> writes:
If there's a bug in your __eq__ method, it may or may not raise an exception, which may or may not get you wrong containment results. But it will probably get you buggy results, somehow or another. That's what design, code reviews, and testing are for.
We'll have to "agree to disagree" then. If you want error silencing by default, Python is not the language you are looking for.
We can agree to disagree, if you like. But taken to the limit, the Zen you quoted would prevent the try except clause from being used.