type-class

Classic Classes

Class objects are described below. When a class object is called, a new class instance (also described below) is created and returned. This implies a call to the class’s __init__ method if it has one. Any arguments are passed on to the __init__ method. If there is no __init__ method, the class must be called without arguments.

Class instances

Class instances are described below. Class instances are callable only when the class has a __call__ method; x(arguments) is a shorthand for x.__call__(argum