t228.trans 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Module(body=[ClassDef(name='X',
  2. bases=[],
  3. body=[FunctionDef(name='stuff',
  4. args=arguments(args=[Name(id='self',
  5. ctx=Param())],
  6. vararg=None,
  7. kwarg=None,
  8. defaults=[]),
  9. body=[Pass()],
  10. decorator_list=[])],
  11. decorator_list=[]),
  12. Assign(targets=[Name(id='x',
  13. ctx=Store())],
  14. value=Call(func=Name(id='X',
  15. ctx=Load()),
  16. args=[],
  17. keywords=[],
  18. starargs=None,
  19. kwargs=None)),
  20. Assign(targets=[Name(id='f',
  21. ctx=Store())],
  22. value=Call(func=Name(id='getattr',
  23. ctx=Load()),
  24. args=[Name(id='x',
  25. ctx=Load()),
  26. Str(s='stuff')],
  27. keywords=[],
  28. starargs=None,
  29. kwargs=None)),
  30. Print(dest=None,
  31. values=[Name(id='f',
  32. ctx=Load())],
  33. nl=True),
  34. Assign(targets=[Name(id='fu',
  35. ctx=Store())],
  36. value=Call(func=Name(id='getattr',
  37. ctx=Load()),
  38. args=[Name(id='X',
  39. ctx=Load()),
  40. Str(s='stuff')],
  41. keywords=[],
  42. starargs=None,
  43. kwargs=None)),
  44. Print(dest=None,
  45. values=[Name(id='fu',
  46. ctx=Load())],
  47. nl=True)])