I have a few objects, that should have shared fields. Some of them may be strings or other immutables. How can I share them in the best way? My only variant is to write a container manually.
class Shared(object):
    def __init__(self, what_to_share):
        self.inner_value = what_to_share    
    @property
    def value(self):
        return self.inner_value
    @value.setter
    def value(self, new_value):
       self.inner_value = new_value
