micropython

Annotated tests/call_func_uncertain.py

635:74ad0468297b
2013-01-15 Paul Boddie Added support for multiple class definitions in the same namespace with the same name. Made classes attribute users.
paul@199 1
#!/usr/bin/env python
paul@199 2
paul@199 3
def f(a, b, c):
paul@215 4
    return c
paul@199 5
paul@199 6
g = f
paul@229 7
paul@229 8
result1_3 = g(1, c=3, b=2)
paul@199 9
paul@199 10
def g(a, c, b):
paul@215 11
    return c
paul@199 12
paul@229 13
result2_3 = g(1, c=3, b=2)
paul@199 14
paul@199 15
# vim: tabstop=4 expandtab shiftwidth=4