2016-10-26 | Paul Boddie | file changeset files shortlog | Use the parent of an method attribute's origin as its context. |
paul@2 | 1 | def f(): |
paul@2 | 2 | l = [1, 2, 3] |
paul@2 | 3 | x = l |
paul@2 | 4 | a, b, c = l |
paul@2 | 5 | d, e, f = [1, 2, 3] |
paul@2 | 6 | |
paul@2 | 7 | def g(x): |
paul@2 | 8 | l = [1, 2, 3] |
paul@2 | 9 | m = [4, l, 6] |
paul@2 | 10 | if x: |
paul@2 | 11 | n = l |
paul@2 | 12 | else: |
paul@2 | 13 | n = m |
paul@2 | 14 | |
paul@2 | 15 | l = [1, 2, 3] |
paul@2 | 16 | x = l |
paul@2 | 17 | a, b, c = l |
paul@2 | 18 | d, e, f = [1, 2, 3] |
paul@2 | 19 | m = [4, l, 6] |
paul@2 | 20 | if x: |
paul@2 | 21 | n = l |
paul@2 | 22 | else: |
paul@2 | 23 | n = m |