Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #31485

Re: overriding equals operation

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: overriding equals operation
Date 2012-10-17 09:14 +0100
References <mailman.2273.1350395930.27098.python-list@python.org> <30e44a90-34b1-4ed3-97db-9fd76ec61f69@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.2333.1350461685.27098.python-list@python.org> (permalink)

Show all headers | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

overriding equals operation Pradipto Banerjee <pradipto.banerjee@adainvestments.com> - 2012-10-16 08:51 -0500
  Re: overriding equals operation Thomas Rachel <nutznetz-0c1b6768-bfa9-48d5-a470-7603bd3aa915@spamschutz.glglgl.de> - 2012-10-16 16:07 +0200
  Re: overriding equals operation Nobody <nobody@nowhere.com> - 2012-10-16 18:31 +0100
  Re: overriding equals operation 88888 Dihedral <dihedral88888@googlemail.com> - 2012-10-16 21:16 -0700
    Re: overriding equals operation Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-10-17 09:14 +0100
  Re: overriding equals operation 88888 Dihedral <dihedral88888@googlemail.com> - 2012-10-16 21:16 -0700

csiph-web