2010-06-16 | Paul Boddie | file changeset files shortlog | Attempted to introduce a more conservative approach to visiting program units and collecting attributes. Moved the declaration of StopIteration into the inspection method for the "for" statement. Added module registration so that attribute collection successfully visits imported modules. |
paul@343 | 1 | #!/usr/bin/env python |
paul@343 | 2 | |
paul@343 | 3 | a = 1 |
paul@343 | 4 | |
paul@343 | 5 | def reassign(i): |
paul@343 | 6 | if i: |
paul@343 | 7 | a = a |
paul@343 | 8 | return a # name has varying origin |
paul@343 | 9 | |
paul@343 | 10 | result2_1 = reassign(3) |
paul@343 | 11 | |
paul@343 | 12 | # vim: tabstop=4 expandtab shiftwidth=4 |