2008-02-23 | Paul Boddie | file changeset files shortlog | Introduced a separate method for assigning instance attribute positions. |
paul@21 | 1 | #!/usr/bin/env python |
paul@21 | 2 | |
paul@21 | 3 | def f(a, b, c): |
paul@21 | 4 | pass |
paul@21 | 5 | |
paul@21 | 6 | f(1, 2, 3) |
paul@21 | 7 | f(1, b=2, c=3) |
paul@21 | 8 | f(c=3, b=2, a=1) |
paul@21 | 9 | |
paul@26 | 10 | g = f |
paul@26 | 11 | g(1, c=3, b=2) |
paul@26 | 12 | |
paul@26 | 13 | def g(a, c, b): |
paul@26 | 14 | pass |
paul@26 | 15 | |
paul@26 | 16 | g(1, c=3, b=2) |
paul@26 | 17 | |
paul@21 | 18 | # vim: tabstop=4 expandtab shiftwidth=4 |