2007-06-22 | paulb | file changeset files shortlog | Moved Namespace from annotate to simplified.utils. Made Subprogram a Structure in order to support namespaces and operations dependent on namespaces (such as __bool__). Prevented context alteration on attributes acquired through modules (as globals). Added a get_instances method for classes. Attempted to improve instance fixing - still needs much work. |
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) |