[Python-Dev] Dict suppressing exceptions
Armin Rigo
arigo at tunes.org
Fri Aug 11 11:27:57 CEST 2006
Hi,
On Thu, Aug 10, 2006 at 02:36:16PM -0700, Guido van Rossum wrote:
> > On Thu, Aug 10, 2006 at 09:11:42PM +0200, "Martin v. L?wis" wrote:
> > > I'm in favour of having this __eq__ just return False. I don't think
> > > the warning is necessary, (...)
> >
> > +1
>
> Can you explain why you believe that no warning is necessary?
Ah... mostly out of ignorance, I fear. I did not realize there were
strange cases like u"\xff" == "\xff". I will leave this to more
unicode-minded people to decide, but I'm still definitely of the idea
that the __eq__ should not raise an exception.
A bientot,
Armin
More information about the Python-Dev
mailing list