2012-11-02 | Paul Boddie | file changeset files shortlog | Removed the static labelling on attribute parents since the static information actually applied to the attributes and not to the parents. Introduced provisional tracking of unknown attribute accesses. |
paul@220 | 1 | #!/usr/bin/env python |
paul@220 | 2 | |
paul@339 | 3 | def f(self, x): |
paul@220 | 4 | return x |
paul@220 | 5 | |
paul@220 | 6 | class C: |
paul@339 | 7 | e = f |
paul@220 | 8 | |
paul@220 | 9 | class D: |
paul@220 | 10 | e = C.e |
paul@220 | 11 | |
paul@220 | 12 | d = D() |
paul@220 | 13 | q = d.e # unbound C.e |
paul@233 | 14 | result_321 = q(C(), 321) |
paul@220 | 15 | |
paul@220 | 16 | # vim: tabstop=4 expandtab shiftwidth=4 |