overriding equals operation

Mark Lawrence breamoreboy at yahoo.co.uk
Wed Oct 17 04:14:43 EDT 2012


On 17/10/2012 05:16, 88888 Dihedral wrote:
> What you really want is b=a.copy()
> not b=a to disentangle two objects.
>
> __eq__ is used in the comparison operation.
>

The winner Smartest Answer by a Bot Award 2012 :)

-- 
Cheers.

Mark Lawrence.




More information about the Python-list mailing list