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