2006-11-28 | paulb | file changeset files shortlog | Introduced ReturnFromFunction and ReturnFromBlock nodes, replacing usage of Return nodes and improving the handling of locals snapshots and return values. Added pop-up elements for certain keywords in the viewer. Expanded operation node support. Tidied the construction of various node representations. Reordered various methods for potentially easier navigation. Expanded tests, adding for2.py: a test of return values within blocks. |
paulb@21 | 1 | a = 123 |
paulb@21 | 2 | def f(x): |
paulb@21 | 3 | global a |
paulb@21 | 4 | a = x |
paulb@21 | 5 | def g(a): |
paulb@21 | 6 | b = a |
paulb@21 | 7 | class A: |
paulb@21 | 8 | x = a |
paulb@21 | 9 | global a |
paulb@21 | 10 | y = a |