2007-04-06 | paulb | file changeset files shortlog | Introduced sets throughout the code. Created a simplified package containing essential classes. Changed the annotation visitor so that nodes are not returned from each visitor method. Added a check on the context when invoking subprograms so that the extra Self node is not inserted into the arguments for non-instance methods or functions. |
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() |