2008-08-18 | Paul Boddie | file changeset files shortlog | Added a class table which should provide run-time support for class compatibility testing. Improved optimisation activities to remove active value-providing instructions only where appropriate. Added more simple-input-employing instructions. Added notes about context discovery and replacement at run-time. Made the raw code dump include class contexts for class attributes where appropriate. Improved the tests of attribute access and invocation. |
paul@21 | 1 | #!/usr/bin/env python |
paul@21 | 2 | |
paul@21 | 3 | def f(a, b, c): |
paul@21 | 4 | pass |
paul@21 | 5 | |
paul@21 | 6 | f(1, 2, 3) |
paul@21 | 7 | f(1, b=2, c=3) |
paul@21 | 8 | f(c=3, b=2, a=1) |
paul@21 | 9 | |
paul@26 | 10 | g = f |
paul@26 | 11 | g(1, c=3, b=2) |
paul@26 | 12 | |
paul@26 | 13 | def g(a, c, b): |
paul@26 | 14 | pass |
paul@26 | 15 | |
paul@26 | 16 | g(1, c=3, b=2) |
paul@26 | 17 | |
paul@21 | 18 | # vim: tabstop=4 expandtab shiftwidth=4 |