2009-11-16 | Paul Boddie | file changeset files shortlog | Changed the _attrnames annotation to map a number of names to attributes, thus permitting such annotations for many names on Function nodes. Added type guard generation, preventing inappropriate types from being supplied to optimised instructions. Separated some of the testing into more specific success and failure tests. |
paul@21 | 1 | #!/usr/bin/env python |
paul@21 | 2 | |
paul@21 | 3 | def f(a, b, c): |
paul@215 | 4 | return c |
paul@21 | 5 | |
paul@229 | 6 | result1_3 = f(1, 2, 3) |
paul@229 | 7 | result2_3 = f(1, b=2, c=3) |
paul@229 | 8 | result3_3 = f(c=3, b=2, a=1) |
paul@21 | 9 | |
paul@21 | 10 | # vim: tabstop=4 expandtab shiftwidth=4 |