Esempio n. 1
0
def super_proxy(self, type):
    py_super = super(type, self)
    my_super = super3(caller=inspect.currentframe().f_back)

    assert py_super.__str__() == my_super.__str__() \
            or (py_super.__self_class__ == my_super.__self_class__ and \
           py_super.__self__ == my_super.__self__ and \
           py_super.__thisclass__ == my_super.__thisclass__)

    return my_super
Esempio n. 2
0
 def f(self):
     return super3().f()
Esempio n. 3
0
 def decorated(self, *args, **kwargs):
     s = super3()
     r = getattr(s, func.__name__)()
     return func(self, r)
Esempio n. 4
0
 def f(self):
     return super3(myExplicitB, self).f()