2008-09-28 | Paul Boddie | file changeset files shortlog | Moved the Optimiser class into its own module, taking the responsibility for maintaining active instruction information with it. |
paul@136 | 1 | #!/usr/bin/env python |
paul@136 | 2 | |
paul@136 | 3 | class C: |
paul@136 | 4 | def f(self, a, b, c): |
paul@136 | 5 | pass |
paul@136 | 6 | |
paul@136 | 7 | c = C() |
paul@136 | 8 | |
paul@136 | 9 | f = C.f |
paul@136 | 10 | f(c, 1, 2, 3) # test self argument |
paul@136 | 11 | |
paul@136 | 12 | # vim: tabstop=4 expandtab shiftwidth=4 |