properties setting each other
Wojtek Walczak
gminick at bzt.bzt
Wed Sep 3 10:34:12 EDT 2008
More information about the Python-list mailing list
Wed Sep 3 10:34:12 EDT 2008
- Previous message (by thread): properties setting each other
- Next message (by thread): properties setting each other
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- Previous message (by thread): properties setting each other
- Next message (by thread): properties setting each other
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list