micropython

tests/call_func_default_redefine.py

212:9cb85e5768fa
2009-05-09 Paul Boddie Added missing funccode to structures. Renamed function_from_method to as_instantiator with naming changes. Added a test of instantiation and keywords.
     1 #!/usr/bin/env python     2      3 def f(a, b, c=4):     4     return c     5      6 g = f     7 r1 = g(1, c=3, b=2)     8 r2 = g(1, 2)     9     10 def g(a, c, b=5):    11     return b    12     13 r3 = g(1, c=3, b=2)    14 r4 = g(1, 3)    15     16 # vim: tabstop=4 expandtab shiftwidth=4