super() doesn't get superclass
Marshall T. Vandegrift
llasram at gmail.com
Thu Sep 20 10:31:41 EDT 2007
Michele Simionato <michele.simionato at gmail.com> writes:
> I am not against mixins (even if I am certainly very much against the
> *abuse* of mixins, such as in Zope 2). What I would advocate (but I
> realize that it will never happen in Python) is single inheritance +
> mixins a la Ruby.
Ruby might be a bad example here. Although the Ruby language syntax
only supports single inheritance, mixins are implemented as multiple
inheritance under the hood. That is, inheriting from a class and
including a class as a mixin modifies the sub-/mixing class in exactly
the same way.
-Marshall
More information about the Python-list
mailing list