Python Mixins
rantingrick
rantingrick at gmail.com
Sat Sep 24 17:05:36 EDT 2011
More information about the Python-list mailing list
Sat Sep 24 17:05:36 EDT 2011
- Previous message (by thread): Python Mixins
- Next message (by thread): Python 2.5 zlib trouble
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- Previous message (by thread): Python Mixins
- Next message (by thread): Python 2.5 zlib trouble
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list