I\'m doing something similar to the following
class Parrot(object):
def __init__(self):
self.__voltage = 100000
@property
def voltage(s
The whole point of the getter is that it returns the value without being called. p.voltage
returns the integer object, so running p.voltage()
is equivalent to 100()
or something.
There can still be cases where you want to call the value of a property, like if the value is itself a function. But you don't need it here.