1 #!/usr/bin/env python 2 3 class C: 4 def f(self, a, b, c): 5 self.g(a) 6 m = self.g 7 m(b) 8 9 def g(self, x): 10 C.h(self, x) 11 12 def h(self, p): 13 pass 14 15 c = C() 16 c.f(1, 2, 3) 17 18 f = c.f 19 f(1, 2, 3) 20 21 # vim: tabstop=4 expandtab shiftwidth=4