class documentation
Metaclass for mix-ins.
Method | __init__ |
Undocumented |
Method | super |
Imitate super() in a mix-in. |
Class Variable | __mixin |
Undocumented |
Constant | _HAS |
Undocumented |
Imitate super() in a mix-in. This method is a substitute for super(MixinClass, self).overloaded_method(arg), which we can't use because mix-ins appear at the end of the MRO. It should be called as MixinClass.super(self.overloaded_method)(arg) . It works by finding the class on which MixinMeta.__init__ set MixinClass.overloaded_method and calling super() on that class. Args: method: The method in the mix-in. Returns: The method overloaded by 'method'.