t509.trans 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. Module(body=[TryExcept(body=[Raise(type=Name(id='TypeError',
  2. ctx=Load()),
  3. inst=Str(s='abc'),
  4. tback=None)],
  5. handlers=[ExceptHandler(type=Name(id='TypeError',
  6. ctx=Load()),
  7. name=Name(id='e',
  8. ctx=Store()),
  9. body=[Print(dest=None,
  10. values=[Str(s='caught'),
  11. Name(id='e',
  12. ctx=Load())],
  13. nl=True)])],
  14. orelse=[]),
  15. TryExcept(body=[TryExcept(body=[Raise(type=Call(func=Name(id='TypeError',
  16. ctx=Load()),
  17. args=[Str(s='abc')],
  18. keywords=[],
  19. starargs=None,
  20. kwargs=None),
  21. inst=None,
  22. tback=None)],
  23. handlers=[ExceptHandler(type=Name(id='TypeError',
  24. ctx=Load()),
  25. name=Name(id='e',
  26. ctx=Store()),
  27. body=[Print(dest=None,
  28. values=[Str(s='caught'),
  29. Name(id='e',
  30. ctx=Load())],
  31. nl=True),
  32. Raise(type=None,
  33. inst=None,
  34. tback=None)])],
  35. orelse=[])],
  36. handlers=[ExceptHandler(type=Name(id='TypeError',
  37. ctx=Load()),
  38. name=Name(id='e',
  39. ctx=Store()),
  40. body=[Print(dest=None,
  41. values=[Str(s='caught re-raise: '),
  42. Name(id='e',
  43. ctx=Load())],
  44. nl=True)])],
  45. orelse=[]),
  46. TryExcept(body=[Raise(type=Name(id='TypeError',
  47. ctx=Load()),
  48. inst=None,
  49. tback=None)],
  50. handlers=[ExceptHandler(type=Name(id='TypeError',
  51. ctx=Load()),
  52. name=Name(id='e',
  53. ctx=Store()),
  54. body=[Print(dest=None,
  55. values=[Str(s='caught'),
  56. Name(id='e',
  57. ctx=Load())],
  58. nl=True)])],
  59. orelse=[]),
  60. TryExcept(body=[Assign(targets=[Name(id='x',
  61. ctx=Store())],
  62. value=Call(func=Name(id='TypeError',
  63. ctx=Load()),
  64. args=[Str(s='abc')],
  65. keywords=[],
  66. starargs=None,
  67. kwargs=None)),
  68. Raise(type=Name(id='x',
  69. ctx=Load()),
  70. inst=None,
  71. tback=None)],
  72. handlers=[ExceptHandler(type=Name(id='TypeError',
  73. ctx=Load()),
  74. name=Name(id='e',
  75. ctx=Store()),
  76. body=[Print(dest=None,
  77. values=[Str(s='caught'),
  78. Name(id='e',
  79. ctx=Load())],
  80. nl=True)])],
  81. orelse=[])])