How to detect that a function argument is the default one

ast nomail at invalid.com
Wed Dec 10 16:17:37 EST 2014


"Chris Angelico" <rosuav at gmail.com> a écrit dans le message de 
news:mailman.16814.1418228205.18130.python-list at python.org...
> On Thu, Dec 11, 2014 at 3:10 AM, Jean-Michel Pichavant
> <jeanmichel at sequans.com> wrote:
>> ----- Original Message -----
>>> From: "ast" <nomail at 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. 




More information about the Python-list mailing list