2009-11-23 | Paul Boddie | file changeset files shortlog | Added attribute usage registration for branches where more specific attribute usage occurs, but where such usage cannot be merged back into the active usage definition for a given name. This should ensure that attributes are not forgotten because their usage was not merged and carried forward. Added more specific tests. |
paul@58 | 1 | #!/usr/bin/env python |
paul@58 | 2 | |
paul@58 | 3 | def f(a, b, c): |
paul@58 | 4 | pass |
paul@58 | 5 | |
paul@58 | 6 | g = f |
paul@58 | 7 | g(1, a=3, b=2) # uncertain target - not detected |
paul@58 | 8 | |
paul@58 | 9 | def g(a, c, b): |
paul@58 | 10 | pass |
paul@58 | 11 | |
paul@58 | 12 | g(1, a=3, b=2) |
paul@58 | 13 | |
paul@58 | 14 | f(1, 2, 3) |
paul@58 | 15 | f(1, a=2, c=3) |
paul@58 | 16 | f(c=3, b=2, a=1) |
paul@58 | 17 | |
paul@58 | 18 | # vim: tabstop=4 expandtab shiftwidth=4 |