Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/x/o/xoutil-1.5.4/tests/test_basic_aop.py   xoutil(Download)
    def test_simple_substitution(self):
        def plusone(self, what):
            return super(_class, self).ident(what) + 1
 
        sobj = self.SimpleObject()
            return super(_class2, self).ident(what) + 2
 
        sobj = self.SimpleObject()
        prev = sobj.ident(99)
        with weaved(sobj, ident=plusone) as sobj: