t207.trans 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. FunctionDef(name='doit',
  34. args=arguments(args=[Name(id='self',
  35. ctx=Param())],
  36. vararg=None,
  37. kwarg=None,
  38. defaults=[]),
  39. body=[AugAssign(target=Attribute(value=Name(id='self',
  40. ctx=Load()),
  41. attr='a',
  42. ctx=Store()),
  43. op=Add(),
  44. value=Num(n=10)),
  45. AugAssign(target=Attribute(value=Name(id='self',
  46. ctx=Load()),
  47. attr='b',
  48. ctx=Store()),
  49. op=Add(),
  50. value=Str(s='dog')),
  51. AugAssign(target=Attribute(value=Name(id='self',
  52. ctx=Load()),
  53. attr='c',
  54. ctx=Store()),
  55. op=Add(),
  56. value=List(elts=[Num(n=9),
  57. Num(n=10)],
  58. ctx=Load())),
  59. AugAssign(target=Attribute(value=Name(id='self',
  60. ctx=Load()),
  61. attr='d',
  62. ctx=Store()),
  63. op=Add(),
  64. value=Num(n=10000))],
  65. decorator_list=[])],
  66. decorator_list=[]),
  67. Assign(targets=[Name(id='s',
  68. ctx=Store())],
  69. value=Call(func=Name(id='Stuff',
  70. ctx=Load()),
  71. args=[],
  72. keywords=[],
  73. starargs=None,
  74. kwargs=None)),
  75. Expr(value=Call(func=Attribute(value=Name(id='s',
  76. ctx=Load()),
  77. attr='doit',
  78. ctx=Load()),
  79. args=[],
  80. keywords=[],
  81. starargs=None,
  82. kwargs=None)),
  83. Print(dest=None,
  84. values=[Attribute(value=Name(id='s',
  85. ctx=Load()),
  86. attr='a',
  87. ctx=Load())],
  88. nl=True),
  89. Print(dest=None,
  90. values=[Attribute(value=Name(id='s',
  91. ctx=Load()),
  92. attr='b',
  93. ctx=Load())],
  94. nl=True),
  95. Print(dest=None,
  96. values=[Attribute(value=Name(id='s',
  97. ctx=Load()),
  98. attr='c',
  99. ctx=Load())],
  100. nl=True),
  101. Print(dest=None,
  102. values=[Attribute(value=Name(id='s',
  103. ctx=Load()),
  104. attr='d',
  105. ctx=Load())],
  106. nl=True)])