t514.trans 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Module(body=[TryExcept(body=[Print(dest=None,
  2. values=[BinOp(left=Str(s='a'),
  3. op=Mult(),
  4. right=Str(s='b'))],
  5. nl=True)],
  6. handlers=[ExceptHandler(type=Name(id='TypeError',
  7. ctx=Load()),
  8. name=Name(id='e',
  9. ctx=Store()),
  10. body=[Print(dest=None,
  11. values=[Name(id='e',
  12. ctx=Load())],
  13. nl=True)])],
  14. orelse=[]),
  15. TryExcept(body=[Print(dest=None,
  16. values=[BinOp(left=Str(s='a'),
  17. op=Mult(),
  18. right=Num(n=3.4))],
  19. nl=True)],
  20. handlers=[ExceptHandler(type=Name(id='TypeError',
  21. ctx=Load()),
  22. name=Name(id='e',
  23. ctx=Store()),
  24. body=[Print(dest=None,
  25. values=[Name(id='e',
  26. ctx=Load())],
  27. nl=True)])],
  28. orelse=[]),
  29. TryExcept(body=[Print(dest=None,
  30. values=[BinOp(left=Num(n=3.4),
  31. op=Mult(),
  32. right=Str(s='b'))],
  33. nl=True)],
  34. handlers=[ExceptHandler(type=Name(id='TypeError',
  35. ctx=Load()),
  36. name=Name(id='e',
  37. ctx=Store()),
  38. body=[Print(dest=None,
  39. values=[Name(id='e',
  40. ctx=Load())],
  41. nl=True)])],
  42. orelse=[]),
  43. TryExcept(body=[Print(dest=None,
  44. values=[BinOp(left=Str(s='a'),
  45. op=Mult(),
  46. right=List(elts=[Num(n=2)],
  47. ctx=Load()))],
  48. nl=True)],
  49. handlers=[ExceptHandler(type=Name(id='TypeError',
  50. ctx=Load()),
  51. name=Name(id='e',
  52. ctx=Store()),
  53. body=[Print(dest=None,
  54. values=[Name(id='e',
  55. ctx=Load())],
  56. nl=True)])],
  57. orelse=[]),
  58. TryExcept(body=[Print(dest=None,
  59. values=[BinOp(left=List(elts=[Num(n=2)],
  60. ctx=Load()),
  61. op=Mult(),
  62. right=Str(s='b'))],
  63. nl=True)],
  64. handlers=[ExceptHandler(type=Name(id='TypeError',
  65. ctx=Load()),
  66. name=Name(id='e',
  67. ctx=Store()),
  68. body=[Print(dest=None,
  69. values=[Name(id='e',
  70. ctx=Load())],
  71. nl=True)])],
  72. orelse=[])])