For instance, the class declaration:
class Something(Superclass):
an_attribute = 1
another_attribute = 'hello'
Is there any way that python can tell me that an_attribute
and another_attribute
were defined in this class declaration?
Another way of framing this question, I guess, is "can I filter dir
results by the class in which they were declared?