2009-05-29 | Paul Boddie | file changeset files shortlog | Changed RecoverFrame to actually recover the locals as the invocation frame, rather than just discard the locals. Changed AdjustFrame to work on the locals. Switched the order of the above instructions in instantiator functions. Made various tests compatible with the simple testing framework. |
paul@199 | 1 | #!/usr/bin/env python |
paul@199 | 2 | |
paul@199 | 3 | def f(a, b, c): |
paul@215 | 4 | return c |
paul@199 | 5 | |
paul@199 | 6 | g = f |
paul@229 | 7 | |
paul@229 | 8 | result1_3 = g(1, c=3, b=2) |
paul@199 | 9 | |
paul@199 | 10 | def g(a, c, b): |
paul@215 | 11 | return c |
paul@199 | 12 | |
paul@229 | 13 | result2_3 = g(1, c=3, b=2) |
paul@199 | 14 | |
paul@199 | 15 | # vim: tabstop=4 expandtab shiftwidth=4 |