t421.trans 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. Module(body=[Print(dest=None,
  2. values=[Call(func=Name(id='repr',
  3. ctx=Load()),
  4. args=[Num(n=1)],
  5. keywords=[],
  6. starargs=None,
  7. kwargs=None)],
  8. nl=True),
  9. Print(dest=None,
  10. values=[Call(func=Name(id='repr',
  11. ctx=Load()),
  12. args=[Num(n=100)],
  13. keywords=[],
  14. starargs=None,
  15. kwargs=None)],
  16. nl=True),
  17. Print(dest=None,
  18. values=[Call(func=Name(id='repr',
  19. ctx=Load()),
  20. args=[Num(n=1.5)],
  21. keywords=[],
  22. starargs=None,
  23. kwargs=None)],
  24. nl=True),
  25. Print(dest=None,
  26. values=[Call(func=Name(id='repr',
  27. ctx=Load()),
  28. args=[List(elts=[],
  29. ctx=Load())],
  30. keywords=[],
  31. starargs=None,
  32. kwargs=None)],
  33. nl=True),
  34. Print(dest=None,
  35. values=[Call(func=Name(id='repr',
  36. ctx=Load()),
  37. args=[List(elts=[Num(n=1),
  38. Num(n=2),
  39. Num(n=3),
  40. Num(n=4)],
  41. ctx=Load())],
  42. keywords=[],
  43. starargs=None,
  44. kwargs=None)],
  45. nl=True),
  46. Print(dest=None,
  47. values=[Call(func=Name(id='repr',
  48. ctx=Load()),
  49. args=[Tuple(elts=[],
  50. ctx=Load())],
  51. keywords=[],
  52. starargs=None,
  53. kwargs=None)],
  54. nl=True),
  55. Print(dest=None,
  56. values=[Call(func=Name(id='repr',
  57. ctx=Load()),
  58. args=[Tuple(elts=[Num(n=1),
  59. Num(n=2),
  60. Num(n=3),
  61. Num(n=4)],
  62. ctx=Load())],
  63. keywords=[],
  64. starargs=None,
  65. kwargs=None)],
  66. nl=True),
  67. Print(dest=None,
  68. values=[Call(func=Name(id='repr',
  69. ctx=Load()),
  70. args=[Dict(keys=[],
  71. values=[])],
  72. keywords=[],
  73. starargs=None,
  74. kwargs=None)],
  75. nl=True),
  76. Print(dest=None,
  77. values=[Call(func=Name(id='repr',
  78. ctx=Load()),
  79. args=[Dict(keys=[Num(n=1),
  80. Num(n=3)],
  81. values=[Num(n=2),
  82. Num(n=4)])],
  83. keywords=[],
  84. starargs=None,
  85. kwargs=None)],
  86. nl=True),
  87. Print(dest=None,
  88. values=[Call(func=Name(id='repr',
  89. ctx=Load()),
  90. args=[Str(s='')],
  91. keywords=[],
  92. starargs=None,
  93. kwargs=None)],
  94. nl=True),
  95. Print(dest=None,
  96. values=[Call(func=Name(id='repr',
  97. ctx=Load()),
  98. args=[Str(s='hello world')],
  99. keywords=[],
  100. starargs=None,
  101. kwargs=None)],
  102. nl=True),
  103. Print(dest=None,
  104. values=[Call(func=Name(id='repr',
  105. ctx=Load()),
  106. args=[Call(func=Name(id='object',
  107. ctx=Load()),
  108. args=[],
  109. keywords=[],
  110. starargs=None,
  111. kwargs=None)],
  112. keywords=[],
  113. starargs=None,
  114. kwargs=None)],
  115. nl=True),
  116. ClassDef(name='A',
  117. bases=[Name(id='object',
  118. ctx=Load())],
  119. body=[FunctionDef(name='__init__',
  120. args=arguments(args=[Name(id='self',
  121. ctx=Param())],
  122. vararg=None,
  123. kwarg=None,
  124. defaults=[]),
  125. body=[Pass()],
  126. decorator_list=[])],
  127. decorator_list=[]),
  128. Print(dest=None,
  129. values=[Call(func=Name(id='repr',
  130. ctx=Load()),
  131. args=[Call(func=Name(id='A',
  132. ctx=Load()),
  133. args=[],
  134. keywords=[],
  135. starargs=None,
  136. kwargs=None)],
  137. keywords=[],
  138. starargs=None,
  139. kwargs=None)],
  140. nl=True),
  141. ClassDef(name='B',
  142. bases=[],
  143. body=[FunctionDef(name='__init__',
  144. args=arguments(args=[Name(id='self',
  145. ctx=Param())],
  146. vararg=None,
  147. kwarg=None,
  148. defaults=[]),
  149. body=[Pass()],
  150. decorator_list=[]),
  151. FunctionDef(name='__repr__',
  152. args=arguments(args=[Name(id='self',
  153. ctx=Param())],
  154. vararg=None,
  155. kwarg=None,
  156. defaults=[]),
  157. body=[Return(value=Str(s='custom repr'))],
  158. decorator_list=[])],
  159. decorator_list=[]),
  160. Print(dest=None,
  161. values=[Call(func=Name(id='repr',
  162. ctx=Load()),
  163. args=[Call(func=Name(id='B',
  164. ctx=Load()),
  165. args=[],
  166. keywords=[],
  167. starargs=None,
  168. kwargs=None)],
  169. keywords=[],
  170. starargs=None,
  171. kwargs=None)],
  172. nl=True)])