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@189 | 1 | #!/usr/bin/env python |
paul@189 | 2 | |
paul@189 | 3 | def f(a, b, c=4): |
paul@190 | 4 | return c |
paul@189 | 5 | |
paul@189 | 6 | g = f |
paul@190 | 7 | r1 = g(1, c=3, b=2) |
paul@190 | 8 | r2 = g(1, 2) |
paul@189 | 9 | |
paul@189 | 10 | def g(a, c, b=5): |
paul@190 | 11 | return b |
paul@189 | 12 | |
paul@190 | 13 | r3 = g(1, c=3, b=2) |
paul@190 | 14 | r4 = g(1, 3) |
paul@189 | 15 | |
paul@189 | 16 | # vim: tabstop=4 expandtab shiftwidth=4 |