For the attributes of a class:
- The attribute
__dict__of a class or an instance doesn't include__base__,__name__. What attributes does__dict__of a class contain, and what doesn't? - How can I get all the attributes of a class?
For the attributes of an instance:
- The attribute
__dict__of an instance doesn't include__class__. What attributes does__dict__of an instance contain, and what doesn't? - How can I get all the attributes of an instance?
Thanks.