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@14 | 1 | class A: |
paulb@82 | 2 | "A class with attribute and method." |
paulb@14 | 3 | x = 123 |
paulb@14 | 4 | def m(self, x): |
paulb@14 | 5 | self.x = x |
paulb@14 | 6 | a = A() |
paulb@23 | 7 | y = A.x |
paulb@82 | 8 | a.m(321) |
paulb@23 | 9 | z = a.x |