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@23 | 1 | def g(a, b, c, d, e): |
paulb@23 | 2 | pass |
paulb@23 | 3 | |
paulb@14 | 4 | def f(a, b, c=2, *d, **e): |
paulb@23 | 5 | return g(a, b, c, d, e) |
paulb@23 | 6 | |
paulb@23 | 7 | f(1, 2) |
paulb@23 | 8 | f("1", "2") |