2007-04-01 | paulb | raw annotate files changeset graph | Made the recording of return types and exceptions on function nodes annotation operations, fixing a lack of analysis on recursive functions. Changed the handling of constants so that Constant objects are not loaded as references - instead, instances are created dynamically. Changed the __atomic__ attributes in the built-in classes to use the "object" name already defined, thus avoiding issues with the initialisation order of built-in classes. Fixed a docstring in the simplified module. |
1 class E: 2 def __init__(self, x): 3 pass 4 class F: 5 def __init__(self, x): 6 pass 7 8 tb = None # NOTE: Traceback not supported yet. 9 x = 1 10 11 def f(x): 12 raise E, x 13 14 def g(x): 15 try: 16 raise F(x) 17 except: 18 pass 19 20 def h(x, tb): 21 try: 22 raise F, x, tb 23 except: 24 pass 25 26 try: 27 f(x) 28 g(x) 29 h(x, tb) 30 except: 31 pass