2013-10-31 | Paul Boddie | file changeset files shortlog | Added remarks about local namespaces and name usage observations. | syspython-as-target |
paul@665 | 1 | #!/usr/bin/env python |
paul@665 | 2 | |
paul@665 | 3 | class C: |
paul@665 | 4 | def f(self): |
paul@665 | 5 | return 1 |
paul@665 | 6 | def f(self): |
paul@665 | 7 | return 2 |
paul@665 | 8 | |
paul@665 | 9 | def g(self): |
paul@665 | 10 | return 2 |
paul@665 | 11 | def g(self): |
paul@665 | 12 | return 3 |
paul@665 | 13 | |
paul@665 | 14 | c = C() |
paul@665 | 15 | result_2 = c.f() |
paul@665 | 16 | result_3 = c.g() |
paul@665 | 17 | |
paul@665 | 18 | # vim: tabstop=4 expandtab shiftwidth=4 |