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@363 | 1 | #!/usr/bin/env python |
paul@363 | 2 | |
paul@363 | 3 | import imported_package.module |
paul@363 | 4 | |
paul@363 | 5 | def f(): |
paul@363 | 6 | return imported_package.module.attribute |
paul@363 | 7 | |
paul@363 | 8 | result_456 = f() |
paul@363 | 9 | |
paul@363 | 10 | # vim: tabstop=4 expandtab shiftwidth=4 |