You can make this a property, using the ``@property`` decorator.