I\'m trying to find the best way to extend a class variable. Hopefully an example of the method I\'ve come up with so far will make this clear.
class A(object):
I definitively would go for instance-properties. (if I got it right, they are not bound to be static for your case?!)
>>> class A:
... @property
... def foo(self):
... return ['thin', 'another thing']
...
>>> class B(A):
... @property
... def foo(self):
... return super().foo + ['stuff', 'thing 3']
...
>>> B().foo
['thin', 'another thing', 'stuff', 'thing 3']