2014-06-01 | Paul Boddie | file changeset files shortlog | Merged branches. | syspython-as-target |
paul@226 | 1 | #!/usr/bin/env python |
paul@226 | 2 | |
paul@339 | 3 | def g(self, x): |
paul@226 | 4 | return x |
paul@226 | 5 | |
paul@226 | 6 | class C: |
paul@339 | 7 | e = g |
paul@226 | 8 | |
paul@226 | 9 | def f(self): |
paul@226 | 10 | return self.e |
paul@226 | 11 | |
paul@226 | 12 | c = C() |
paul@226 | 13 | p = c.f() # bound C.e |
paul@228 | 14 | result_321 = p(321) |
paul@226 | 15 | |
paul@226 | 16 | # vim: tabstop=4 expandtab shiftwidth=4 |