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@210 | 1 | def f(x): |
paulb@210 | 2 | while x: |
paulb@210 | 3 | y = 3 |
paulb@210 | 4 | x -= 1 |
paulb@210 | 5 | return y |
paulb@210 | 6 | |
paulb@210 | 7 | f(1) |