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@34 | 1 | if 2: |
paulb@34 | 2 | class A: |
paulb@34 | 3 | def f(self): |
paulb@34 | 4 | pass |
paulb@34 | 5 | else: |
paulb@34 | 6 | class A: |
paulb@34 | 7 | pass |
paulb@34 | 8 | class B(A): |
paulb@34 | 9 | pass |