Python Mixins

rantingrick rantingrick at gmail.com
Sat Sep 24 23:05:36 CEST 2011


On Sep 22, 4:14 pm, Matt <mattj.morri... at gmail.com> wrote:
> I'm curious about what people's opinions are about using mixins in
> Python. I really like, for example, the way that class based views
> were implemented in Django 1.3 using mixins. It makes everything
> extremely customizable and reusable. I think this is a very good
> practice to follow, however, in Python mixins are achieved by using
> (or perhaps misusing) inheritance and often multiple inheritance.

Have a look at this article also. Even though he uses java source code
anyone can follow along:

   http://berniesumption.com/software/inheritance-is-evil-and-must-be-destroyed/



More information about the Python-list mailing list