micropython

tests/call_func_default.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 r1 = f(1, 2, 3)     7 r2 = f(1, 2)     8      9 # vim: tabstop=4 expandtab shiftwidth=4