2012-07-15 | Paul Boddie | file changeset files shortlog | Show only distinct attribute name lists when showing attribute usage for names. |
paul@394 | 1 | #!/usr/bin/env python |
paul@394 | 2 | |
paul@394 | 3 | class A: |
paul@394 | 4 | pass |
paul@394 | 5 | |
paul@394 | 6 | class B: |
paul@394 | 7 | x = A |
paul@394 | 8 | |
paul@394 | 9 | class C: |
paul@394 | 10 | x = A |
paul@394 | 11 | |
paul@394 | 12 | class D: |
paul@394 | 13 | x = type |
paul@394 | 14 | |
paul@394 | 15 | result_3 = C.x is A and 3 or 0 |
paul@394 | 16 | result_4 = D.x is type and 4 or 0 |
paul@394 | 17 | |
paul@394 | 18 | # vim: tabstop=4 expandtab shiftwidth=4 |