2007-02-16 | paulb | file changeset files shortlog | Removed the _nodes annotation. Added _subprogram annotations. Attempted to use active or copied nodes for all special viewer annotations in the viewer. |
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@188 | 6 | def n(self, y=x): |
paulb@188 | 7 | self.y = y |
paulb@188 | 8 | |
paulb@174 | 9 | a1 = A() |
paulb@174 | 10 | a2 = A() |
paulb@23 | 11 | y = A.x |
paulb@174 | 12 | a1.m(321) |
paulb@174 | 13 | a2.m("321") |
paulb@174 | 14 | z1 = a1.x |
paulb@174 | 15 | z2 = a2.x |
paulb@188 | 16 | a1.n(123) |
paulb@188 | 17 | a2.n("123") |
paulb@188 | 18 | a2.n() |