1 class A: 2 pass 3 class B: 4 pass 5 class C: 6 pass 7 8 def f(): 9 x = 1 10 try: 11 if x: 12 raise A 13 else: 14 raise B 15 except A, e: 16 a = e 17 except (B, C), f: 18 a = f 19 else: 20 a = x 21 return a 22 23 f()