2013-10-23 | Paul Boddie | file changeset files shortlog | Fixed single element tuple output. | syspython-as-target |
paul@434 | 1 | #!/usr/bin/env python |
paul@434 | 2 | |
paul@434 | 3 | def f(self, x): |
paul@434 | 4 | return 2 |
paul@434 | 5 | |
paul@434 | 6 | class C: |
paul@434 | 7 | def g(self, x): |
paul@434 | 8 | return 1 |
paul@434 | 9 | h = f |
paul@434 | 10 | |
paul@434 | 11 | c = C() |
paul@434 | 12 | result_1 = c.g(123) |
paul@434 | 13 | result_2 = c.h(123) |
paul@434 | 14 | #result_2 = f(123, 456) |
paul@434 | 15 | |
paul@434 | 16 | # vim: tabstop=4 expandtab shiftwidth=4 |