Over(joy)riding

mk mrkafk at gmail.com
Wed Feb 17 12:29:36 EST 2010


Kurt Smith wrote:

> In case you're not familiar with it, MI allows you to have mixins &
> traits.  They work very well if the mixin superclasses don't have any
> clashes with the other superclasses, so each mixin adds its own unique
> set of methods to the derived class.  Then you don't have to worry
> about mro and all that (at least as much).
> 
> Here's an article on it, with examples:
> 
> http://www.linuxjournal.com/node/4540/print
> 
> Michele Simionato has some criticism of MI pitfalls and has come up
> with the straits module to remedy it -- you might be interested.  He
> goes into detail here:
> 
> http://www.artima.com/weblogs/viewpost.jsp?thread=246488

Thanks Kurt, I will certainly look into that!

Regards,
mk




More information about the Python-list mailing list