2010-09-07 | Paul Boddie | file changeset files shortlog | Changed attribute usage tracking to consider branching and separate usage possibilities in a slightly more rigourous way. Attempted to add isinstance support. Added tests of the revised attribute usage support. |
paul@151 | 1 | #!/usr/bin/env python |
paul@151 | 2 | |
paul@151 | 3 | def f(a, b): |
paul@151 | 4 | a += b |
paul@354 | 5 | return a |
paul@151 | 6 | |
paul@151 | 7 | a = 1 |
paul@151 | 8 | b = 2 |
paul@151 | 9 | a += b |
paul@354 | 10 | result_3 = a |
paul@354 | 11 | result_4 = f(b, 2) |
paul@354 | 12 | result_2 = b |
paul@151 | 13 | |
paul@151 | 14 | # vim: tabstop=4 expandtab shiftwidth=4 |