micropython

Annotated tests/failure/argument_shortage.py

432:1964e5898e68
2011-06-14 Paul Boddie Fixed negation of operator method results in other operator methods. Added NotImplementedType as an automatically generated class.
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