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@23 | 1 | def g(a, b, c, d, e): |
paulb@23 | 2 | pass |
paulb@23 | 3 | |
paulb@14 | 4 | def f(a, b, c=2, *d, **e): |
paulb@23 | 5 | return g(a, b, c, d, e) |
paulb@23 | 6 | |
paulb@23 | 7 | f(1, 2) |
paulb@23 | 8 | f("1", "2") |
paulb@152 | 9 | f(a=1.0, b=2.0) |