osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

newb question about @property


On Mon, Oct 2, 2017 at 1:32 PM, Bill <BILL_NOSPAM at whoknows.net> wrote:
>     @property def circumference(self):
>         return 2 * math.pi *self.radius

Of course the *proper* formula here is just math.tau * self.radius.