Dang, that's so much cleaner!
On May 29, 2014 1:33 PM, "Mark Charyk" <notifications@github.com> wrote:

> In students/NathanHubbell/Circle/circle.py:
>
> > +
> > +
> > +    def __str__(self):
> > +        return "Circle with radius: %s00000"%repr(float(self.radius))
> > +    def __repr__(self):
> > +        return "Circle(%s)"%str(self.radius)
> > +    def __add__(self,other):
> > +        return Circle(self.radius+other.radius)
> > +    def __mul__(self,other):
> > +        return Circle(self.radius*other)
> > +
> > +    def __gt__(self,other):
> > +        if self.radius > other.radius:
> > +            return True
> > +        else:
> > +            return False
>
> Remember that evaluating a boolean returns a boolean object that can be
> returned from a function
>
> def __gt__(self, other):
>     return self.radius > other.radius
>
> Boom. Done.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/codefellows/sea-c15-python/pull/145/files#r13202782>
> .
>