t537.trans 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Module(body=[TryExcept(body=[Expr(value=Call(func=Name(id='min',
  2. ctx=Load()),
  3. args=[Num(n=3)],
  4. keywords=[],
  5. starargs=None,
  6. kwargs=None))],
  7. handlers=[ExceptHandler(type=Name(id='TypeError',
  8. ctx=Load()),
  9. name=None,
  10. body=[Print(dest=None,
  11. values=[Str(s='min(3) raises type error')],
  12. nl=True)])],
  13. orelse=[]),
  14. TryExcept(body=[Expr(value=Call(func=Name(id='max',
  15. ctx=Load()),
  16. args=[Num(n=3)],
  17. keywords=[],
  18. starargs=None,
  19. kwargs=None))],
  20. handlers=[ExceptHandler(type=Name(id='TypeError',
  21. ctx=Load()),
  22. name=None,
  23. body=[Print(dest=None,
  24. values=[Str(s='max(3) raises type error')],
  25. nl=True)])],
  26. orelse=[]),
  27. TryExcept(body=[Expr(value=Call(func=Name(id='min',
  28. ctx=Load()),
  29. args=[List(elts=[],
  30. ctx=Load())],
  31. keywords=[],
  32. starargs=None,
  33. kwargs=None))],
  34. handlers=[ExceptHandler(type=Name(id='ValueError',
  35. ctx=Load()),
  36. name=None,
  37. body=[Print(dest=None,
  38. values=[Str(s='min([]) raises value error')],
  39. nl=True)])],
  40. orelse=[]),
  41. TryExcept(body=[Expr(value=Call(func=Name(id='max',
  42. ctx=Load()),
  43. args=[Call(func=Name(id='tuple',
  44. ctx=Load()),
  45. args=[],
  46. keywords=[],
  47. starargs=None,
  48. kwargs=None)],
  49. keywords=[],
  50. starargs=None,
  51. kwargs=None))],
  52. handlers=[ExceptHandler(type=Name(id='ValueError',
  53. ctx=Load()),
  54. name=None,
  55. body=[Print(dest=None,
  56. values=[Str(s='max(tuple()) raises value error')],
  57. nl=True)])],
  58. orelse=[]),
  59. Print(dest=None,
  60. values=[Call(func=Name(id='max',
  61. ctx=Load()),
  62. args=[GeneratorExp(elt=Name(id='i',
  63. ctx=Load()),
  64. generators=[comprehension(target=Name(id='i',
  65. ctx=Store()),
  66. iter=Call(func=Name(id='range',
  67. ctx=Load()),
  68. args=[Num(n=7)],
  69. keywords=[],
  70. starargs=None,
  71. kwargs=None),
  72. ifs=[])])],
  73. keywords=[],
  74. starargs=None,
  75. kwargs=None)],
  76. nl=True),
  77. Print(dest=None,
  78. values=[Call(func=Name(id='min',
  79. ctx=Load()),
  80. args=[GeneratorExp(elt=Name(id='j',
  81. ctx=Load()),
  82. generators=[comprehension(target=Name(id='j',
  83. ctx=Store()),
  84. iter=Call(func=Name(id='range',
  85. ctx=Load()),
  86. args=[Num(n=4),
  87. Num(n=1),
  88. Num(n=-1)],
  89. keywords=[],
  90. starargs=None,
  91. kwargs=None),
  92. ifs=[])])],
  93. keywords=[],
  94. starargs=None,
  95. kwargs=None)],
  96. nl=True)])