Re: Newbie Question - Overloading ==
- From: xkenneth <xkenneth@xxxxxxxxx>
- Date: Mon, 31 Mar 2008 11:00:13 -0700 (PDT)
Yeah, this is what I'm talking about:
def __eq__(self, other) :
try :
return <>
except AttributeError:
return False
That seems a bit nasty to me.
.
- Follow-Ups:
- Re: Newbie Question - Overloading ==
- From: Amit Gupta
- Re: Newbie Question - Overloading ==
- References:
- Newbie Question - Overloading ==
- From: xkenneth
- Re: Newbie Question - Overloading ==
- From: Amit Gupta
- Newbie Question - Overloading ==
- Prev by Date: Re: troll poll
- Next by Date: RE: Is this a good time to start learning python?
- Previous by thread: Re: Newbie Question - Overloading ==
- Next by thread: Re: Newbie Question - Overloading ==
- Index(es):
Relevant Pages
|