2008-05-18 | Paul Boddie | raw annotate files changeset graph | Revised the rules around attributes and contexts, based on new observations documented in the methods.py examples. Added a context attribute to Attr instances in order to properly simulate the revised rules. Added context changing as values are added to namespaces. Added missing context generation in invocation code generation. Tidied up the formatted representations of data objects. Fixed local variable positions. Tidied up Getattr processing when inspecting modules. Extended the tests to cover attribute access rules. |
1 Exception Handling 2 ------------------ 3 4 Where exceptions may be raised, the following rules are applied: 5 6 1. If exception labels exist, any raised exception causes a jump to the 7 handler label. 8 9 2. If no exception labels exist, any raised exception causes the current 10 function to be terminated with an exception condition. 11 12 3. Where an invocation returns with an exception condition set, rules #1 and 13 #2 are applied.