t410.trans 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Module(body=[ClassDef(name='F',
  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=1)),
  14. Assign(targets=[Attribute(value=Name(id='self',
  15. ctx=Load()),
  16. attr='b',
  17. ctx=Store())],
  18. value=Num(n=2)),
  19. Assign(targets=[Attribute(value=Name(id='self',
  20. ctx=Load()),
  21. attr='d',
  22. ctx=Store())],
  23. value=Num(n=4))],
  24. decorator_list=[])],
  25. decorator_list=[]),
  26. Assign(targets=[Name(id='f',
  27. ctx=Store())],
  28. value=Call(func=Name(id='F',
  29. ctx=Load()),
  30. args=[],
  31. keywords=[],
  32. starargs=None,
  33. kwargs=None)),
  34. Print(dest=None,
  35. values=[Call(func=Name(id='getattr',
  36. ctx=Load()),
  37. args=[Name(id='f',
  38. ctx=Load()),
  39. Str(s='a')],
  40. keywords=[],
  41. starargs=None,
  42. kwargs=None)],
  43. nl=True),
  44. Print(dest=None,
  45. values=[Call(func=Name(id='getattr',
  46. ctx=Load()),
  47. args=[Name(id='f',
  48. ctx=Load()),
  49. Str(s='b')],
  50. keywords=[],
  51. starargs=None,
  52. kwargs=None)],
  53. nl=True),
  54. Print(dest=None,
  55. values=[Call(func=Name(id='getattr',
  56. ctx=Load()),
  57. args=[Name(id='f',
  58. ctx=Load()),
  59. Str(s='c'),
  60. Num(n=3)],
  61. keywords=[],
  62. starargs=None,
  63. kwargs=None)],
  64. nl=True),
  65. Print(dest=None,
  66. values=[Call(func=Name(id='getattr',
  67. ctx=Load()),
  68. args=[Name(id='f',
  69. ctx=Load()),
  70. Str(s='d')],
  71. keywords=[],
  72. starargs=None,
  73. kwargs=None)],
  74. nl=True)])