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@59 | 1 | #!/usr/bin/env python |
paul@59 | 2 | |
paul@59 | 3 | def f(a, b, **c): |
paul@59 | 4 | pass |
paul@59 | 5 | |
paul@59 | 6 | f(1, 2, 3) |
paul@59 | 7 | f(1, b=2, c=3, d=4) |
paul@59 | 8 | f(c=3, b=2, a=1, d=4) |
paul@59 | 9 | |
paul@59 | 10 | g = f |
paul@59 | 11 | g(1, c=3, b=2, d=4) |
paul@59 | 12 | |
paul@59 | 13 | def g(a, c, b): |
paul@59 | 14 | pass |
paul@59 | 15 | |
paul@59 | 16 | g(1, c=3, b=2, d=4) |
paul@59 | 17 | |
paul@59 | 18 | # vim: tabstop=4 expandtab shiftwidth=4 |