2012-05-10 | Paul Boddie | file changeset files shortlog | Changed the builtins module loading to use the module search path. This makes it easier to run the test program from another location. Added a note about relative imports. |
paul@236 | 1 | #!/usr/bin/env python |
paul@236 | 2 | |
paul@236 | 3 | def f(x): |
paul@236 | 4 | global y |
paul@236 | 5 | y = x |
paul@236 | 6 | |
paul@236 | 7 | def g(): |
paul@236 | 8 | return y |
paul@236 | 9 | |
paul@236 | 10 | f(24680) |
paul@236 | 11 | result_24680 = g() |
paul@236 | 12 | |
paul@236 | 13 | # vim: tabstop=4 expandtab shiftwidth=4 |