2009-05-23 | Paul Boddie | file changeset files shortlog | Added callable context vs. self argument validation in CheckFrame, plus a test which detects an attempt to fake the self argument with an incompatible instance. |
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 |