micropython

Annotated tests/failure/argument_surplus.py

299:feccb2b0967e
2010-02-08 Paul Boddie Added control-flow branch abandonment for statements like break, continue, raise and return, preventing attribute usage from such branches from contributing to subsequent usage observations. Split the initial attribute usage test into smaller tests. Added notes about testing guard suitability.
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
f(1, 2, 3)
paul@59 7
f(1, 2, 3, 4)
paul@59 8
paul@59 9
# vim: tabstop=4 expandtab shiftwidth=4