[BangPypers] Help required to design classes

Saju M sajuptpm at gmail.com
Tue Oct 9 11:37:04 CEST 2012


Hi Anand,

Thanks, let me try.

Regards
Saju Madhavan
+91 09535134654



On Tue, Oct 9, 2012 at 3:00 PM, Anand Chitipothu <anandology at gmail.com>wrote:

> > 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
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>


More information about the BangPypers mailing list