On Friday, February 7, 2020 at 4:30:23 PM UTC+1, Random832 wrote:
> On Fri, Feb 7, 2020, at 10:14, Richard Damon wrote:
> > On 2/6/20 2:13 PM, klau...@gmail.com wrote:
> > > The default __eq__ method (object identity) is compatible with all
> > > (reasonable) self-defined __hash__ method.
> > >
>
The default __eq__ method (object identity) is compatible with all (reasonable)
self-defined __hash__ method.
Stefan
--
https://mail.python.org/mailman/listinfo/python-list
On Wednesday, February 5, 2020 at 7:41:13 PM UTC+1, Dieter Maurer wrote:
> Stefan Halfpap wrote at 2020-2-5 14:57 +0100:
> >I do not understand the following statement from the python (2 and 3)
> >documentation regarding __hash__ and __eq__ methods:
> >"If a class does not define an __eq__()
> ><