Python Language Property Objects Overriding just a getter, setter or a deleter of a property object


When you inherit from a class with a property, you can provide a new implementation for one or more of the property getter, setter or deleter functions, by referencing the property object on the parent class:

class BaseClass(object):
    def foo(self):
        return some_calculated_value()

    def foo(self, value):

class DerivedClass(BaseClass):
    def foo(self, value):

You can also add a setter or deleter where there was not one on the base class before.