Re: [Tutor] What is a mixin class?

2007-01-19 Thread Danny Yoo
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:

Re: [Tutor] What is a mixin class?

2007-01-18 Thread Alan Gauld
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

[Tutor] What is a mixin class?

2007-01-17 Thread Don Taylor
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

Re: [Tutor] What is a mixin class?

2007-01-17 Thread Chris Lasher
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

Re: [Tutor] What is a mixin class?

2007-01-17 Thread Danny Yoo
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

Re: [Tutor] What is a mixin class?

2007-01-17 Thread Kent Johnson
(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

Re: [Tutor] What is a mixin class?

2007-01-17 Thread Don Taylor
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