2012-07-07 | Paul Boddie | file changeset files shortlog | Filter out __init__.py files when looking for submodule files. |
paul@228 | 1 | #!/usr/bin/env python |
paul@228 | 2 | |
paul@339 | 3 | def g(self, x): |
paul@228 | 4 | return x |
paul@228 | 5 | |
paul@228 | 6 | class C: |
paul@339 | 7 | e = g |
paul@228 | 8 | |
paul@228 | 9 | def f(self): |
paul@228 | 10 | self.m = self.e |
paul@228 | 11 | return self.m # uncertain |
paul@228 | 12 | |
paul@228 | 13 | c = C() |
paul@228 | 14 | p = c.f() # bound C.e |
paul@228 | 15 | result_321 = p(321) |
paul@228 | 16 | |
paul@228 | 17 | # vim: tabstop=4 expandtab shiftwidth=4 |