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@107 | 1 | class X: |
paulb@107 | 2 | def y(self): pass |
paulb@107 | 3 | class Y: |
paulb@107 | 4 | def x(self): pass |
paulb@107 | 5 | x = X() |
paulb@107 | 6 | y = Y() |
paul@0 | 7 | try: |
paul@0 | 8 | x.y() |
paul@0 | 9 | finally: |
paul@0 | 10 | y.x() |