Do not use getter, just access the class attribute directly. Typically, recipients are used to access private / protected attributes, but in python there is no such thing. Another reason for using a getter is that you can do some work before returning the value, in your case it is not, but it may change in the future, do not worry when this time begins with the use of property decorator
@property def name(self): return self._name
you still get access to it, myObject.name , as well as direct access to it.
source share