2009-05-17 | Paul Boddie | file changeset files shortlog | Fixed unary operator code generation. Added subscript support. Added RSVP implementations of list.__getitem__ and int.__neg__. Added a test of subscripts and a currently unused test of star parameter unpacking. |
paul@216 | 1 | #!/usr/bin/env python |
paul@216 | 2 | |
paul@216 | 3 | def f(*args): |
paul@216 | 4 | a, b, c = args |
paul@216 | 5 | return c |
paul@216 | 6 | |
paul@216 | 7 | x = f(1, 2, 3) |
paul@216 | 8 | |
paul@216 | 9 | # vim: tabstop=4 expandtab shiftwidth=4 |