2012-05-11 | Paul Boddie | file changeset files shortlog | Added support for loading submodules given as imported names in "from" statements (such as "module" in "from imported_package import module" referring to "imported_package.module"). |
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 |