Re: [Python-Dev] __eq__ vs hash Understood. Neither do I. :-) But maybe you could get the authors of
that code into this discussion?

On Fri, Apr 4, 2008 at 7:53 AM, Ralf Schmitt  wrote:
>
>
>
> On Fri, Apr 4, 2008 at 4:38 PM, Guido van Rossum  wrote:
> >
> >
> >
> > On Fri, Apr 4, 2008 at 2:46 AM, Ralf Schmitt  wrote:
> > > the news file for python 2.6 does not mention that you need to define
> > > __hash__ in case you define __eq__ for a class.
> > > This breaks some code (for me: mercurial and pyparsing).
> > > Shouldn't this be documented somewhere (I also cannot find it in the
> > > whatsnew file).
> >
> > Well, technically this has always been the requirement.
> >
> >
> > What specific code breaks? Maybe we need to turn this into a warning
> > in order to be more backwards compatible?
> >
>
> I don't feel like digging into mercurial or pyparsing code currently. sorry.
>
>



-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-Dev mailing list
zvllln-eum@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev%40tangomu.com


