2008-06-21 | Paul Boddie | file changeset files shortlog | Added support for the detection of module attribute assignment. Added some more tests of module assignment. Introduced better system path initialisation based on the program being inspected. |
paul@59 | 1 | #!/usr/bin/env python |
paul@59 | 2 | |
paul@59 | 3 | def f(a, b, **c): |
paul@59 | 4 | pass |
paul@59 | 5 | |
paul@59 | 6 | f(1, 2, 3) |
paul@59 | 7 | f(1, b=2, c=3, d=4) |
paul@59 | 8 | f(c=3, b=2, a=1, d=4) |
paul@59 | 9 | |
paul@59 | 10 | g = f |
paul@59 | 11 | g(1, c=3, b=2, d=4) |
paul@59 | 12 | |
paul@59 | 13 | def g(a, c, b): |
paul@59 | 14 | pass |
paul@59 | 15 | |
paul@59 | 16 | g(1, c=3, b=2, d=4) |
paul@59 | 17 | |
paul@59 | 18 | # vim: tabstop=4 expandtab shiftwidth=4 |