2007-06-18 | paulb | file changeset files shortlog | Redefined the get_distinct_instances method on _Class to return a dictionary mapping instances to distinct instances. Added a program fixer which replaces instances with those from a distinct set for each class. Updated the viewer and test program to show only distinct instances when requested. |
paulb@29 | 1 | class A: |
paulb@29 | 2 | def a(self): pass |
paulb@29 | 3 | class B(A): |
paulb@29 | 4 | def b(self): pass |
paulb@29 | 5 | class C(A, B): pass |
paulb@34 | 6 | class D(B): pass |