On Mon, 23 Aug 2010 19:22:46 +0200, Thomas Jollans wrote: > On Monday 23 August 2010, it occurred to John O'Hagan to exclaim: [...] >> I'm not sure if I'm on the right track here design-wise. Maybe this >> could be better done with inheritance (not my forte), but my first >> thought is that no, the helper classes (if that's what they are) are >> not actually a type of the main class, but are auxiliary to it. > > You could try using mixins.
Without taking a position for or against mixins, I think it is only fair to point out that not everyone considers them a good design choice: Mixins considered harmful part 1 by Michele Simionato http://www.artima.com/weblogs/viewpost.jsp?thread=246341 And parts 2, 3, and 4: http://www.artima.com/weblogs/viewpost.jsp?thread=246483 http://www.artima.com/weblogs/viewpost.jsp?thread=254367 http://www.artima.com/weblogs/viewpost.jsp?thread=254507 -- Steven -- http://mail.python.org/mailman/listinfo/python-list