[Tutor] Operator Overloading

Kevin Reeder reederk at comcast.net
Tue Apr 5 06:16:26 CEST 2005


On Tue, 05 Apr 2005 10:56:40 +1200 (NZST)
jfouhy at paradise.net.nz wrote:

> Fine, but always test the simplified version, unless you're
> absolutely certain what you're throwing out!

Point taken.

> When you do 'A + [4, 5, 6]', python first calls
> A.__getattr__('__coerce__').

Everything's working fine now.

> pdb is useful :-)

Thanks,

Kevin


More information about the Tutor mailing list