micropython

tests/call_func_extra.py

78:a550b84e0ea5
2008-05-04 Paul Boddie Made the temporary storage allocation and deallocation more adaptive so that entries are only reserved when actually required and discarded when actually used. Introduced temporary storage usage for invocation targets instead of having a LoadCallable instruction.
     1 #!/usr/bin/env python     2      3 def f(a, b, *c):     4     pass     5      6 f(1, 2, 3)     7 f(1, b=2)     8 f(1, 2, 3, 4)     9     10 g = f    11 g(1, 2, 3)    12 g(1, b=2)    13 g(1, 2, 3, 4)    14     15 def g(a, c, *b):    16     pass    17     18 g(1, c=2)    19 g(1, 2, 3, 4)    20     21 # vim: tabstop=4 expandtab shiftwidth=4