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@190 | 1 | class A: |
paulb@190 | 2 | pass |
paulb@190 | 3 | |
paulb@190 | 4 | class B: |
paulb@190 | 5 | pass |
paulb@190 | 6 | |
paulb@190 | 7 | def f(): |
paulb@190 | 8 | try: |
paulb@190 | 9 | raise A |
paulb@190 | 10 | except B: |
paulb@190 | 11 | pass |
paulb@190 | 12 | |
paulb@190 | 13 | f() |