"Chris Angelico" <ros...@gmail.com> a écrit dans le message de news:mailman.16814.1418228205.18130.python-l...@python.org...
On Thu, Dec 11, 2014 at 3:10 AM, Jean-Michel Pichavant
<jeanmic...@sequans.com> wrote:
----- Original Message -----
From: "ast" <nom...@invalid.com>

But there's an issue with that solution: self.mass being computed
during the instance initialization, what if radius is changing ?

You are going to laught because i had that bug ... LOL

Everytime an attribute is computed from another attribute, it should ring a python bell : property

yes



Note : what is the mass of a circle ?


In fact it's a ball moving in a plan.
I will change that name.
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to