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@190 | 1 | class A: |
paulb@190 | 2 | pass |
paulb@190 | 3 | |
paulb@190 | 4 | def f(): |
paulb@190 | 5 | raise A |
paulb@190 | 6 | |
paulb@190 | 7 | def g(x): |
paulb@190 | 8 | if x: |
paulb@190 | 9 | f() |
paulb@190 | 10 | else: |
paulb@190 | 11 | pass |
paulb@190 | 12 | |
paulb@190 | 13 | g(1) |