2014-03-17 | Paul Boddie | raw annotate files changeset graph | Fixed the representation of functions so that tuple arguments are handled. Introduced a separate local attribute representation. | syspython-as-target |
1 #!/usr/bin/env python 2 3 class C: 4 x = 123 5 6 class D: 7 x = 456 8 9 a = C() 10 b = D() 11 i = 4 12 13 while i > 0: 14 i -= 1 15 if i == 2: 16 a = D() # influences the loop 17 continue 18 if i == 3: 19 b = a # type of a is C or D (by flow analysis) 20 21 result_123 = b.x 22 result_456 = a.x 23 24 # vim: tabstop=4 expandtab shiftwidth=4