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.