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@368 | 1 | #!/usr/bin/env python |
paul@368 | 2 | |
paul@368 | 3 | def f((a, b), c): |
paul@368 | 4 | return b |
paul@368 | 5 | |
paul@368 | 6 | def g((a, b), c): |
paul@368 | 7 | return c |
paul@368 | 8 | |
paul@368 | 9 | result_2 = f((1, 2), 3) |
paul@368 | 10 | result1_3 = g((1, 2), 3) |
paul@368 | 11 | result2_3 = f(((1, 2), 3), 4) |
paul@368 | 12 | result_4 = g(((1, 2), 3), 4) |
paul@368 | 13 | |
paul@368 | 14 | # vim: tabstop=4 expandtab shiftwidth=4 |