t254.trans 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. Module(body=[ClassDef(name='X',
  2. bases=[],
  3. body=[Assign(targets=[Name(id='x',
  4. ctx=Store())],
  5. value=Num(n=4))],
  6. decorator_list=[]),
  7. Assign(targets=[Name(id='x',
  8. ctx=Store())],
  9. value=Call(func=Name(id='X',
  10. ctx=Load()),
  11. args=[],
  12. keywords=[],
  13. starargs=None,
  14. kwargs=None)),
  15. Assign(targets=[Name(id='stuff',
  16. ctx=Store())],
  17. value=Attribute(value=Name(id='x',
  18. ctx=Load()),
  19. attr='x',
  20. ctx=Load())),
  21. Print(dest=None,
  22. values=[Name(id='stuff',
  23. ctx=Load())],
  24. nl=True),
  25. Assign(targets=[Name(id='things',
  26. ctx=Store())],
  27. value=Attribute(value=Name(id='X',
  28. ctx=Load()),
  29. attr='x',
  30. ctx=Load())),
  31. Print(dest=None,
  32. values=[Name(id='things',
  33. ctx=Load())],
  34. nl=True)])