Mixin pattern in Python

Design pattern Mixin is often used in python. There are two main situations where mixins are used 1: You want to provide a lot of optional features for a class. You want to use one particular feature in a lot of different classes. Order of mixins definition Order in which you use mixins defines the behaviour. Quote from 2: in Python the class hierarchy is defined right to left, so in this case the Mixin2 class is the base class, extended by Mixin1 and finally by BaseClass....

SergeM