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@199 | 1 | #!/usr/bin/env python |
paul@199 | 2 | |
paul@199 | 3 | def f(a, b, c): |
paul@215 | 4 | return c |
paul@199 | 5 | |
paul@199 | 6 | g = f |
paul@215 | 7 | x = g(1, c=3, b=2) |
paul@199 | 8 | |
paul@199 | 9 | def g(a, c, b): |
paul@215 | 10 | return c |
paul@199 | 11 | |
paul@215 | 12 | y = g(1, c=3, b=2) |
paul@199 | 13 | |
paul@199 | 14 | # vim: tabstop=4 expandtab shiftwidth=4 |