micropython

Annotated tests/call_func.py

634:c1c95a183e21
2013-01-14 Paul Boddie Moved common logic into a separate method.
paul@21 1
#!/usr/bin/env python
paul@21 2
paul@21 3
def f(a, b, c):
paul@215 4
    return c
paul@21 5
paul@229 6
result1_3 = f(1, 2, 3)
paul@229 7
result2_3 = f(1, b=2, c=3)
paul@229 8
result3_3 = f(c=3, b=2, a=1)
paul@21 9
paul@21 10
# vim: tabstop=4 expandtab shiftwidth=4