micropython

Annotated tests/failure/argument_shortage.py

290:029ccbe64c2b
2009-11-28 Paul Boddie Added another reference.
paul@59 1
#!/usr/bin/env python
paul@59 2
paul@59 3
def f(a, b, c):
paul@59 4
    pass
paul@59 5
paul@59 6
g = f
paul@59 7
g(1, 2) # uncertain target - not detected
paul@59 8
paul@59 9
def g(a, c, b):
paul@59 10
    pass
paul@59 11
paul@59 12
g(1, a=3, b=2)
paul@59 13
paul@59 14
f(1, 2, 3)
paul@59 15
f(1, 2)
paul@59 16
paul@59 17
# vim: tabstop=4 expandtab shiftwidth=4