newb question about @property

Ian Kelly ian.g.kelly at gmail.com
Mon Oct 2 18:48:16 EDT 2017


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.



More information about the Python-list mailing list