micropython

tests/call_func_uncertain.py

233:8abc113da24c
2009-06-01 Paul Boddie Fixed StoreCallable using a new DataObject method which replaces the address of the callable. Made a cmd module to handle common compilation and processing activities. Renamed MakeObject to MakeInstance. Changed FillDefaults to use the current value as a reference to the container holding the defaults. Removed the extra temporary storage slot previously used when adjusting frames. Changed lambda functions to use a context parameter, changing the image to not reserve space for defaults immediately after the header of such functions. Added notes about the issues with positioning keyword arguments. Expanded and improved the tests.
     1 #!/usr/bin/env python     2      3 def f(a, b, c):     4     return c     5      6 g = f     7      8 result1_3 = g(1, c=3, b=2)     9     10 def g(a, c, b):    11     return c    12     13 result2_3 = g(1, c=3, b=2)    14     15 # vim: tabstop=4 expandtab shiftwidth=4