t289.trans 1.2 KB

12345678910111213141516171819202122232425
  1. Module(body=[ClassDef(name='x',
  2. bases=[],
  3. body=[Pass()],
  4. decorator_list=[]),
  5. FunctionDef(name='f',
  6. args=arguments(args=[Name(id='x',
  7. ctx=Param())],
  8. vararg=None,
  9. kwarg=None,
  10. defaults=[]),
  11. body=[Return(value=Name(id='x',
  12. ctx=Load()))],
  13. decorator_list=[]),
  14. Assign(targets=[Attribute(value=Name(id='x',
  15. ctx=Load()),
  16. attr='hi',
  17. ctx=Store())],
  18. value=Name(id='f',
  19. ctx=Load())),
  20. Print(dest=None,
  21. values=[Attribute(value=Name(id='x',
  22. ctx=Load()),
  23. attr='hi',
  24. ctx=Load())],
  25. nl=True)])