micropython

Annotated tests/failure/argument_surplus.py

60:1725bf186f73
2008-03-22 Paul Boddie Introduced caching of object and parameter tables. Added parameter table entries for classes, referring to the appropriate __init__ method which should be called when a class is invoked. Added missing __init__ methods to list and listiterator.
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, 3, 4) # 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, 3, 4)
paul@59 16
paul@59 17
# vim: tabstop=4 expandtab shiftwidth=4