2013-07-04 | Paul Boddie | file changeset files shortlog | Fixed operator and built-in function invocations to use the "apply" function. Added a proper translation of print statements. | syspython-as-target |
paul@342 | 1 | #!/usr/bin/env python |
paul@342 | 2 | |
paul@342 | 3 | a = 1 |
paul@342 | 4 | |
paul@342 | 5 | def before(): |
paul@342 | 6 | b = a |
paul@342 | 7 | a = 2 |
paul@342 | 8 | return b |
paul@342 | 9 | |
paul@342 | 10 | def reassign(): |
paul@342 | 11 | a = a |
paul@342 | 12 | return a |
paul@342 | 13 | |
paul@342 | 14 | result1_1 = before() |
paul@342 | 15 | result2_1 = reassign() |
paul@342 | 16 | |
paul@342 | 17 | # vim: tabstop=4 expandtab shiftwidth=4 |