class object def lll self return class def lll self super self dir typ

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
>>> class A(object):
... def lll(self):
... return 5
...
>>> class B(A):
... def lll(self):
... x = super(B, self)
... dir(x)
... type(x)
... x = super(B, self).lll()
... return x * 10
...
>>> B()
<__main__.B object at 0xb7d0a92c>
>>> B().lll()
50