base class:
class BaseTest():
m_list = ['a', 'b']
I want to let every instance of BaseTest and modify its member variable by decorator, because I don't want to change code of BaseTest,as
m_list = ['a', 'b', 'c']
Then next time:
test = BaseTest()
print test.m_list
#Output: ['a', 'b', 'c']
How can I implement?