Re: [Python-Dev] containment checking

2010-03-19 Thread Glenn Linderman
On 3/19/2010 5:20 PM, Michael Foord wrote: On 20/03/2010 00:19, Glenn Linderman wrote: On 3/19/2010 5:18 PM, Michael Foord wrote: 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

Re: [Python-Dev] containment checking

2010-03-19 Thread Michael Foord
On 20/03/2010 00:19, Glenn Linderman wrote: On 3/19/2010 5:18 PM, Michael Foord wrote: 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

Re: [Python-Dev] containment checking

2010-03-19 Thread Glenn Linderman
On 3/19/2010 5:18 PM, Michael Foord wrote: 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 a

Re: [Python-Dev] containment checking

2010-03-19 Thread Michael Foord
On 20/03/2010 00:15, Glenn Linderman wrote: On 3/19/2010 4:58 PM, Antoine Pitrou wrote: Glenn Linderman 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 y

Re: [Python-Dev] containment checking

2010-03-19 Thread Glenn Linderman
On 3/19/2010 4:58 PM, Antoine Pitrou wrote: Glenn Linderman 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 anoth

Re: [Python-Dev] containment checking

2010-03-19 Thread Antoine Pitrou
Glenn Linderman 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

Re: [Python-Dev] containment checking

2010-03-19 Thread Glenn Linderman
On 3/19/2010 3:02 PM, Antoine Pitrou wrote: Glenn Linderman g.nevcal.com> writes: > > Sounds to me like containment checking is wrong; that if it gets an > exception during the comparison that it should assume unequal, rather > than aborting, and continue to the next entry. Wel

Re: [Python-Dev] containment checking

2010-03-19 Thread Antoine Pitrou
Glenn Linderman g.nevcal.com> writes: > > Sounds to me like containment checking is wrong; that if it gets an > exception during the comparison that it should assume unequal, rather > than aborting, and continue to the next entry. Well as the Zen says: Errors should never pass silently. Unless