2.2.10 Special Attributes

The implementation adds a few special read-only attributes to several object types, where they are relevant:

__dict__
A dictionary or other mapping object used to store an object's (writable) attributes.

__methods__
Deprecated since release 2.2. Use the built-in function dir() to get a list of an object's attributes. This attribute is no longer available.

__members__
Deprecated since release 2.2. Use the built-in function dir() to get a list of an object's attributes. This attribute is no longer available.

__class__
The class to which a class instance belongs.

__bases__
The tuple of base classes of a class object. If there are no base classes, this will be an empty tuple.
See About this document... for information on suggesting changes.