micropython

tests/call_func_extra_unknown_with_locals.py

440:cf329206154e
2011-07-03 Paul Boddie Introduced constant usage tracking.
     1 #!/usr/bin/env python     2      3 def f(a, b, *c):     4     d = 123 # introduce locals in the frame     5     return c     6      7 g = f     8      9 r4 = g(1, 2, 3)    10 r5 = g(1, b=2)    11 r6 = g(1, 2, 3, 4)    12     13 def g(a, c, *b):    14     d = 123 # introduce locals in the frame    15     return b    16     17 r7 = g(1, c=2)    18 r8 = g(1, 2, 3, 4)    19     20 result_0 = len(r5)    21 result_1 = len(r4)    22 result_2 = len(r6)    23 result2_0 = len(r7)    24 result2_2 = len(r8)    25     26 # vim: tabstop=4 expandtab shiftwidth=4