2007-02-14 | paulb | file changeset files shortlog | Added a ResetExc node, used to clear the exception state upon entering a handler; introduced actual support for raised exceptions in handlers dealing with the same types of exceptions. Added tests of exception raising behaviour. Added types annotation of StoreName nodes. Fixed viewing of StoreName nodes and the ordering of scope and other pop-up information (as needed by Firefox). |
paulb@128 | 1 | class X: |
paulb@128 | 2 | x = 1 |
paulb@128 | 3 | class Y: |
paulb@128 | 4 | y = "2" |
paulb@128 | 5 | class B: |
paulb@128 | 6 | b = 3.0 |
paulb@128 | 7 | class C: |
paulb@128 | 8 | c = 4 |
paulb@131 | 9 | class D(X): |
paulb@131 | 10 | y = True |
paulb@131 | 11 | a = X() and Y() or B() and not C() or D() |
paulb@132 | 12 | if a: |
paulb@132 | 13 | b = a.x and a.y or a.b and not a.c |
paulb@132 | 14 | c = a |
paulb@132 | 15 | else: |
paulb@132 | 16 | d = a |
paulb@132 | 17 | e = a |