[BangPypers] Help required to design classes

Anand Chitipothu anandology at gmail.com
Tue Oct 9 11:30:08 CEST 2012


> So, can i do like this ???
>
> class BMixin:
>
> class B(BMixin, A):
>
> class Q(BMixin, P):

Yes. But adding the mixin class at the end might be better.

class B(A, BMixin):
   ...

class Q(P, BMixin):
   ...

Anand


More information about the BangPypers mailing list