2007-06-23 | paulb | file changeset files shortlog | Introduced a separate fix_structures method to the instance fixing class. Made new dictionaries when fixing references to instances via accesses/writes. Added recursion detection around getting distinct instances from classes. |
paulb@106 | 1 | l = [(0, 10), (10, 20)] |
paulb@106 | 2 | y = 23 |
paulb@106 | 3 | for a, b in l: |
paulb@106 | 4 | for i in a, b: |
paul@0 | 5 | x = i |
paulb@106 | 6 | else: # NOTE: Need to support StopIteration! |
paul@0 | 7 | x = y |
paul@0 | 8 | else: |
paul@0 | 9 | a = b |