t206.trans 5.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. Module(body=[ClassDef(name='Stuff',
  2. bases=[],
  3. body=[FunctionDef(name='__init__',
  4. args=arguments(args=[Name(id='self',
  5. ctx=Param())],
  6. vararg=None,
  7. kwarg=None,
  8. defaults=[]),
  9. body=[Assign(targets=[Attribute(value=Name(id='self',
  10. ctx=Load()),
  11. attr='a',
  12. ctx=Store())],
  13. value=Num(n=0)),
  14. Assign(targets=[Attribute(value=Name(id='self',
  15. ctx=Load()),
  16. attr='b',
  17. ctx=Store())],
  18. value=Str(s='b')),
  19. Assign(targets=[Attribute(value=Name(id='self',
  20. ctx=Load()),
  21. attr='c',
  22. ctx=Store())],
  23. value=List(elts=[Num(n=1),
  24. Num(n=2),
  25. Num(n=3)],
  26. ctx=Load())),
  27. Assign(targets=[Attribute(value=Name(id='self',
  28. ctx=Load()),
  29. attr='d',
  30. ctx=Store())],
  31. value=Num(n=100000000000000))],
  32. decorator_list=[])],
  33. decorator_list=[]),
  34. Assign(targets=[Name(id='s',
  35. ctx=Store())],
  36. value=Call(func=Name(id='Stuff',
  37. ctx=Load()),
  38. args=[],
  39. keywords=[],
  40. starargs=None,
  41. kwargs=None)),
  42. AugAssign(target=Attribute(value=Name(id='s',
  43. ctx=Load()),
  44. attr='a',
  45. ctx=Store()),
  46. op=Add(),
  47. value=Num(n=10)),
  48. AugAssign(target=Attribute(value=Name(id='s',
  49. ctx=Load()),
  50. attr='b',
  51. ctx=Store()),
  52. op=Add(),
  53. value=Str(s='dog')),
  54. AugAssign(target=Attribute(value=Name(id='s',
  55. ctx=Load()),
  56. attr='c',
  57. ctx=Store()),
  58. op=Add(),
  59. value=List(elts=[Num(n=9),
  60. Num(n=10)],
  61. ctx=Load())),
  62. AugAssign(target=Attribute(value=Name(id='s',
  63. ctx=Load()),
  64. attr='d',
  65. ctx=Store()),
  66. op=Add(),
  67. value=Num(n=10000)),
  68. Print(dest=None,
  69. values=[Attribute(value=Name(id='s',
  70. ctx=Load()),
  71. attr='a',
  72. ctx=Load())],
  73. nl=True),
  74. Print(dest=None,
  75. values=[Attribute(value=Name(id='s',
  76. ctx=Load()),
  77. attr='b',
  78. ctx=Load())],
  79. nl=True),
  80. Print(dest=None,
  81. values=[Attribute(value=Name(id='s',
  82. ctx=Load()),
  83. attr='c',
  84. ctx=Load())],
  85. nl=True),
  86. Print(dest=None,
  87. values=[Attribute(value=Name(id='s',
  88. ctx=Load()),
  89. attr='d',
  90. ctx=Load())],
  91. nl=True)])