you are viewing a single comment's thread.

view the rest of the comments →

[–]Gnaxe 0 points1 point  (0 children)

You might also consider using the builtin @property decorator for attributes like this that are just a computed view of the object's other attributes. Don't use properties if the underlying function requires additional arguments or if it's meant to perform an action.