2.1.8 Special Attributes

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

A dictionary of some sort used to store an object's (writable) attributes.

List of the methods of many built-in object types, e.g., [].__methods__ yields ['append', 'count', 'index', 'insert', 'pop', 'remove', 'reverse', 'sort'].

Similar to __methods__, but lists data attributes.

The class to which a class instance belongs.

The tuple of base classes of a class object.

See About this document... for information on suggesting changes.