"Chris Angelico" <[email protected]> a écrit dans le message de news:[email protected]...
On Thu, Dec 11, 2014 at 3:10 AM, Jean-Michel Pichavant
<[email protected]> wrote:
----- Original Message -----
From: "ast" <[email protected]>

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