On Wed, 3 Sep 2008 14:31:17 +0000 (UTC), Wojtek Walczak wrote:

> class Square(object):
>    def __init__(self, val):
>       self._square = pow(val, 2)
>       self._value = math.sqrt(self.square)
                      ^^^^^^^^^^^^^^^^^^^^^^
or just:
        self._value = val

:-)


-- 
Regards,
Wojtek Walczak,
http://tosh.pl/gminick/
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to