Re: [BangPypers] class inheritance query

2012-02-29 Thread alind sharma
I think that X, Y, Z all inheriting from A will solve your problem. Alind Sharma From: Nitin Kumar To: Bangalore Python Users Group - India Sent: Wednesday, 29 February 2012 12:38 PM Subject: [BangPypers] class inheritance query Hi All, Let say I have

[BangPypers] class inheritance query

2012-02-28 Thread Nitin Kumar
Hi All, Let say I have some classes X,Y and Z with some static values class X: a=1 class Y: b=2 class Z: c=3 Now I want to have class A such that it can have variables from class Y or Z (any one only) depending on runtime so that while using i can use X.a and X.b or X.a a