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