2011-07-02 | Paul Boddie | raw annotate files changeset graph | Moved some code generation methods into a new Assembler class. Separated sequence element storage into a separate method which may form the basis of a native library routine. |
1 #!/usr/bin/env python 2 3 def f(a, b, *c): 4 return c 5 6 g = f 7 8 r4 = g(1, 2, 3) 9 r5 = g(1, b=2) 10 r6 = g(1, 2, 3, 4) 11 12 def g(a, c, *b): 13 return b 14 15 r7 = g(1, c=2) 16 r8 = g(1, 2, 3, 4) 17 18 result_0 = len(r5) 19 result_1 = len(r4) 20 result_2 = len(r6) 21 result2_0 = len(r7) 22 result2_2 = len(r8) 23 24 # vim: tabstop=4 expandtab shiftwidth=4