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@186 | 1 | def f(): |
paulb@186 | 2 | a = 1 + 1.1 - 1 |
paulb@186 | 3 | b = a + 2 / 2 |
paulb@186 | 4 | c = -a |
paulb@186 | 5 | d = +b |
paulb@186 | 6 | e = a // b |
paulb@186 | 7 | |
paulb@186 | 8 | f() |