2009-04-23 | Paul Boddie | file changeset files shortlog | Added missing built-in methods. Added inspection of "if" test expressions. Removed StoreName from the constant storage optimisation (until population of locals/frames is implemented). Added debugging attributes to RSVPMachine for the object and parameter lists. Fixed the StoreName instruction to use the source, not the value. Added common names in use. |
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 |