Wow, Danny. I am impressed. I am not sure that this should not be
called a 'mash-up' rather than a 'mix-in' but it has really been food
for thought.
Thank you, but this isn't an original contribution. I mostly adapted the
stuff in papers like:
Don Taylor [EMAIL PROTECTED] wrote
I have a vague idea what a mixin class is, I would like to get a
better
handle on it.
The mixin style of OOP comes from the old (1970's vintage) Flavors
version of Lisp. In Flavors the metaphor was to start with the Vanilla
flavor and mix-in other flavours
I have a vague idea what a mixin class is, I would like to get a better
handle on it.
It is a term that is used quite often in Python circles, but I can't
find a definition.
I guess that because of multiple inheritance Python does not need a
formal way of specifying mixin classes so I presume
On 1/17/07, Don Taylor [EMAIL PROTECTED] wrote:
So, what constitutes a mixin class and what are the conventional ways to
denote them in code?
A mixin is a specific type of superclass, just called a mixin because
of the concept it represents. A common type of mixin would be a class
that defines
On Wed, 17 Jan 2007, Don Taylor wrote:
I have a vague idea what a mixin class is, I would like to get a better
handle on it.
Hi Don,
This post might help:
http://mail.python.org/pipermail/tutor/2006-October/050448.html
The core idea is that, since classes themselves are first-class
(resending to the whole list)
Don Taylor wrote:
I have a vague idea what a mixin class is, I would like to get a better
handle on it.
It is a term that is used quite often in Python circles, but I can't
find a definition.
I guess that because of multiple inheritance Python does not
Don Taylor wrote:
I have a vague idea what a mixin class is, I would like to get a better
handle on it.
Thanks for the information and the links, I have a much better idea
about mix-ins now. I also found the following informative:
http://www.linuxjournal.com/article/4540
and