micropython

Annotated tests/call_method_self.py

605:0bcb66c8b6e2
2012-07-15 Paul Boddie Show only distinct attribute name lists when showing attribute usage for names.
paul@208 1
#!/usr/bin/env python
paul@208 2
paul@208 3
class C:
paul@208 4
    def f(self, a, b, c):
paul@208 5
        self.g(a, b, c)
paul@208 6
paul@208 7
    def g(self, a, b, c):
paul@208 8
        self.a = a
paul@208 9
        self.b = b
paul@208 10
        self.c = c
paul@208 11
paul@208 12
c = C()
paul@208 13
c.f(1, 2, 3)
paul@230 14
result_1 = c.a
paul@230 15
result_2 = c.b
paul@230 16
result_3 = c.c
paul@208 17
paul@208 18
# vim: tabstop=4 expandtab shiftwidth=4