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@62 | 1 | #!/usr/bin/env python |
paul@62 | 2 | |
paul@62 | 3 | def f(a, b, c=4): |
paul@190 | 4 | return c |
paul@62 | 5 | |
paul@190 | 6 | r1 = f(1, 2, 3) |
paul@190 | 7 | r2 = f(1, 2) |
paul@62 | 8 | |
paul@62 | 9 | # vim: tabstop=4 expandtab shiftwidth=4 |