t534.trans 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. Module(body=[ClassDef(name='U',
  2. bases=[Name(id='object',
  3. ctx=Load())],
  4. body=[FunctionDef(name='__repr__',
  5. args=arguments(args=[Name(id='self',
  6. ctx=Param())],
  7. vararg=None,
  8. kwarg=None,
  9. defaults=[]),
  10. body=[Return(value=Str(s='<U>'))],
  11. decorator_list=[]),
  12. FunctionDef(name='__pos__',
  13. args=arguments(args=[Name(id='self',
  14. ctx=Param())],
  15. vararg=None,
  16. kwarg=None,
  17. defaults=[]),
  18. body=[Return(value=Str(s='pos'))],
  19. decorator_list=[]),
  20. FunctionDef(name='__neg__',
  21. args=arguments(args=[Name(id='self',
  22. ctx=Param())],
  23. vararg=None,
  24. kwarg=None,
  25. defaults=[]),
  26. body=[Return(value=Str(s='neg'))],
  27. decorator_list=[]),
  28. FunctionDef(name='__invert__',
  29. args=arguments(args=[Name(id='self',
  30. ctx=Param())],
  31. vararg=None,
  32. kwarg=None,
  33. defaults=[]),
  34. body=[Return(value=Str(s='invert'))],
  35. decorator_list=[])],
  36. decorator_list=[]),
  37. Print(dest=None,
  38. values=[Call(func=Name(id='U',
  39. ctx=Load()),
  40. args=[],
  41. keywords=[],
  42. starargs=None,
  43. kwargs=None)],
  44. nl=True),
  45. Print(dest=None,
  46. values=[UnaryOp(op=USub(),
  47. operand=Call(func=Name(id='U',
  48. ctx=Load()),
  49. args=[],
  50. keywords=[],
  51. starargs=None,
  52. kwargs=None))],
  53. nl=True),
  54. Print(dest=None,
  55. values=[UnaryOp(op=UAdd(),
  56. operand=Call(func=Name(id='U',
  57. ctx=Load()),
  58. args=[],
  59. keywords=[],
  60. starargs=None,
  61. kwargs=None))],
  62. nl=True),
  63. Print(dest=None,
  64. values=[UnaryOp(op=Invert(),
  65. operand=Call(func=Name(id='U',
  66. ctx=Load()),
  67. args=[],
  68. keywords=[],
  69. starargs=None,
  70. kwargs=None))],
  71. nl=True),
  72. ClassDef(name='E',
  73. bases=[Name(id='object',
  74. ctx=Load())],
  75. body=[FunctionDef(name='__repr__',
  76. args=arguments(args=[Name(id='self',
  77. ctx=Param())],
  78. vararg=None,
  79. kwarg=None,
  80. defaults=[]),
  81. body=[Return(value=Str(s='<U>'))],
  82. decorator_list=[])],
  83. decorator_list=[]),
  84. TryExcept(body=[Print(dest=None,
  85. values=[UnaryOp(op=UAdd(),
  86. operand=Call(func=Name(id='E',
  87. ctx=Load()),
  88. args=[],
  89. keywords=[],
  90. starargs=None,
  91. kwargs=None))],
  92. nl=True)],
  93. handlers=[ExceptHandler(type=Name(id='TypeError',
  94. ctx=Load()),
  95. name=None,
  96. body=[Print(dest=None,
  97. values=[Str(s='no +')],
  98. nl=True)])],
  99. orelse=[])])