Python meta programming question
- by orokusaki
I have a meta class MyClass which adds an attribute to a class based on some of the properties of the class's methods. When I subclass MyClass I want it to still have that attribute, and append to the attribute's value based on the sub-class's methods (ie, sub-classing extends the same attribute that the base's meta creates.).
Can this be done via the bases argument passed to __new__(cls, name, bases, dct)?