On Tue, Apr 08, 2014 at 11:14:36AM +0530, Santosh Kumar wrote:
> Can i mask the parent attibutes in the child. let me give a quick example.
>
> In [1]: class a:
>...: value1 = 1
>...: value2 = 2
>...:
>
> In [2]: class b(a):
>...: value3 = 3
>...:
All of value1, v
2014-04-08 7:44 GMT+02:00 Santosh Kumar :
> Can i mask the parent attibutes in the child. let me give a quick example.
>
> In [1]: class a:
>...: value1 = 1
>...: value2 = 2
>...:
>
> In [2]: class b(a):
>...: value3 = 3
>...:
>
> In [3]: obj1 = b()
>
> In [4]: obj1.
On 08/04/14 06:44, Santosh Kumar wrote:
Can i mask the parent attibutes in the child. let me give a quick example.
In [1]: class a:
...: value1 = 1
...: value2 = 2
...:
In [2]: class b(a):
...: value3 = 3
...:
Note that these are class variables and not instan
Can i mask the parent attibutes in the child. let me give a quick example.
In [1]: class a:
...: value1 = 1
...: value2 = 2
...:
In [2]: class b(a):
...: value3 = 3
...:
In [3]: obj1 = b()
In [4]: obj1.value1
Out[4]: 1
In [5]: obj1.value2
Out[5]: 2
In [6]: obj1.valu