2009-05-09 | Paul Boddie | file changeset files shortlog | Removed erroneous remark about __init__ and __call__ defaults. Added a test of __init__ defaults. Improved and renamed the invocation with non-constant defaults test. |
paul@189 | 1 | #!/usr/bin/env python |
paul@189 | 2 | |
paul@189 | 3 | def f(a, b, c=4): |
paul@189 | 4 | pass |
paul@189 | 5 | |
paul@189 | 6 | f(1, 2, 3) |
paul@189 | 7 | f(1, b=2, c=3) |
paul@189 | 8 | f(c=3, b=2, a=1) |
paul@189 | 9 | f(1, 2) |
paul@189 | 10 | |
paul@189 | 11 | # vim: tabstop=4 expandtab shiftwidth=4 |