[BangPypers] class inheritance query
Nitin Kumar
nitin.nitp at gmail.com
Wed Feb 29 08:08:00 CET 2012
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 and X.c
how can i implement this using property or metaclass or any other idea is
welcomed?
--
Nitin K
More information about the BangPypers
mailing list