t492.trans 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. Module(body=[ClassDef(name='B',
  2. bases=[],
  3. body=[FunctionDef(name='__init__',
  4. args=arguments(args=[Name(id='self',
  5. ctx=Param()),
  6. Name(id='x',
  7. ctx=Param()),
  8. Name(id='y',
  9. ctx=Param()),
  10. Name(id='z',
  11. ctx=Param())],
  12. vararg=None,
  13. kwarg=None,
  14. defaults=[Num(n=0),
  15. Num(n=0),
  16. Num(n=0)]),
  17. body=[Assign(targets=[Attribute(value=Name(id='self',
  18. ctx=Load()),
  19. attr='x',
  20. ctx=Store())],
  21. value=Name(id='x',
  22. ctx=Load())),
  23. Assign(targets=[Attribute(value=Name(id='self',
  24. ctx=Load()),
  25. attr='y',
  26. ctx=Store())],
  27. value=Name(id='y',
  28. ctx=Load())),
  29. Assign(targets=[Attribute(value=Name(id='self',
  30. ctx=Load()),
  31. attr='z',
  32. ctx=Store())],
  33. value=Name(id='z',
  34. ctx=Load()))],
  35. decorator_list=[]),
  36. FunctionDef(name='__str__',
  37. args=arguments(args=[Name(id='self',
  38. ctx=Param())],
  39. vararg=None,
  40. kwarg=None,
  41. defaults=[]),
  42. body=[Return(value=Call(func=Name(id='str',
  43. ctx=Load()),
  44. args=[Tuple(elts=[Attribute(value=Name(id='self',
  45. ctx=Load()),
  46. attr='x',
  47. ctx=Load()),
  48. Attribute(value=Name(id='self',
  49. ctx=Load()),
  50. attr='y',
  51. ctx=Load()),
  52. Attribute(value=Name(id='self',
  53. ctx=Load()),
  54. attr='z',
  55. ctx=Load())],
  56. ctx=Load())],
  57. keywords=[],
  58. starargs=None,
  59. kwargs=None))],
  60. decorator_list=[])],
  61. decorator_list=[]),
  62. Print(dest=None,
  63. values=[Str(s='\nClass with defaults')],
  64. nl=True),
  65. Print(dest=None,
  66. values=[Call(func=Name(id='B',
  67. ctx=Load()),
  68. args=[],
  69. keywords=[],
  70. starargs=None,
  71. kwargs=None)],
  72. nl=True),
  73. Print(dest=None,
  74. values=[Call(func=Name(id='B',
  75. ctx=Load()),
  76. args=[Num(n=1),
  77. Num(n=2),
  78. Num(n=3)],
  79. keywords=[],
  80. starargs=None,
  81. kwargs=None)],
  82. nl=True),
  83. Print(dest=None,
  84. values=[Call(func=Name(id='B',
  85. ctx=Load()),
  86. args=[Num(n=1)],
  87. keywords=[],
  88. starargs=None,
  89. kwargs=None),
  90. Call(func=Name(id='B',
  91. ctx=Load()),
  92. args=[Num(n=2)],
  93. keywords=[],
  94. starargs=None,
  95. kwargs=None),
  96. Call(func=Name(id='B',
  97. ctx=Load()),
  98. args=[Num(n=3)],
  99. keywords=[],
  100. starargs=None,
  101. kwargs=None)],
  102. nl=True),
  103. Print(dest=None,
  104. values=[Call(func=Name(id='B',
  105. ctx=Load()),
  106. args=[],
  107. keywords=[keyword(arg='x',
  108. value=Num(n=1))],
  109. starargs=None,
  110. kwargs=None),
  111. Call(func=Name(id='B',
  112. ctx=Load()),
  113. args=[],
  114. keywords=[keyword(arg='y',
  115. value=Num(n=2))],
  116. starargs=None,
  117. kwargs=None),
  118. Call(func=Name(id='B',
  119. ctx=Load()),
  120. args=[],
  121. keywords=[keyword(arg='z',
  122. value=Num(n=3))],
  123. starargs=None,
  124. kwargs=None)],
  125. nl=True),
  126. Print(dest=None,
  127. values=[Call(func=Name(id='B',
  128. ctx=Load()),
  129. args=[],
  130. keywords=[keyword(arg='x',
  131. value=Num(n=1)),
  132. keyword(arg='z',
  133. value=Num(n=3))],
  134. starargs=None,
  135. kwargs=None),
  136. Call(func=Name(id='B',
  137. ctx=Load()),
  138. args=[],
  139. keywords=[keyword(arg='z',
  140. value=Num(n=3)),
  141. keyword(arg='x',
  142. value=Num(n=1))],
  143. starargs=None,
  144. kwargs=None)],
  145. nl=True),
  146. Print(dest=None,
  147. values=[Call(func=Name(id='B',
  148. ctx=Load()),
  149. args=[],
  150. keywords=[keyword(arg='x',
  151. value=Num(n=1)),
  152. keyword(arg='y',
  153. value=Num(n=2))],
  154. starargs=None,
  155. kwargs=None),
  156. Call(func=Name(id='B',
  157. ctx=Load()),
  158. args=[],
  159. keywords=[keyword(arg='y',
  160. value=Num(n=2)),
  161. keyword(arg='x',
  162. value=Num(n=1))],
  163. starargs=None,
  164. kwargs=None)],
  165. nl=True),
  166. Print(dest=None,
  167. values=[Call(func=Name(id='B',
  168. ctx=Load()),
  169. args=[],
  170. keywords=[keyword(arg='z',
  171. value=Num(n=3)),
  172. keyword(arg='y',
  173. value=Num(n=2))],
  174. starargs=None,
  175. kwargs=None),
  176. Call(func=Name(id='B',
  177. ctx=Load()),
  178. args=[],
  179. keywords=[keyword(arg='y',
  180. value=Num(n=2)),
  181. keyword(arg='z',
  182. value=Num(n=3))],
  183. starargs=None,
  184. kwargs=None)],
  185. nl=True),
  186. Print(dest=None,
  187. values=[Call(func=Name(id='B',
  188. ctx=Load()),
  189. args=[],
  190. keywords=[keyword(arg='z',
  191. value=Num(n=3)),
  192. keyword(arg='x',
  193. value=Num(n=1)),
  194. keyword(arg='y',
  195. value=Num(n=2))],
  196. starargs=None,
  197. kwargs=None),
  198. Call(func=Name(id='B',
  199. ctx=Load()),
  200. args=[],
  201. keywords=[keyword(arg='z',
  202. value=Num(n=3)),
  203. keyword(arg='y',
  204. value=Num(n=2)),
  205. keyword(arg='x',
  206. value=Num(n=1))],
  207. starargs=None,
  208. kwargs=None),
  209. Call(func=Name(id='B',
  210. ctx=Load()),
  211. args=[],
  212. keywords=[keyword(arg='y',
  213. value=Num(n=2)),
  214. keyword(arg='z',
  215. value=Num(n=3)),
  216. keyword(arg='x',
  217. value=Num(n=1))],
  218. starargs=None,
  219. kwargs=None),
  220. Call(func=Name(id='B',
  221. ctx=Load()),
  222. args=[],
  223. keywords=[keyword(arg='y',
  224. value=Num(n=2)),
  225. keyword(arg='x',
  226. value=Num(n=1)),
  227. keyword(arg='z',
  228. value=Num(n=3))],
  229. starargs=None,
  230. kwargs=None)],
  231. nl=True)])