t216.trans 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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=[FunctionDef(name='tmp',
  10. args=arguments(args=[],
  11. vararg=None,
  12. kwarg=None,
  13. defaults=[]),
  14. body=[Expr(value=Call(func=Attribute(value=Name(id='self',
  15. ctx=Load()),
  16. attr='things',
  17. ctx=Load()),
  18. args=[],
  19. keywords=[],
  20. starargs=None,
  21. kwargs=None))],
  22. decorator_list=[]),
  23. Assign(targets=[Attribute(value=Name(id='self',
  24. ctx=Load()),
  25. attr='x',
  26. ctx=Store())],
  27. value=Name(id='tmp',
  28. ctx=Load()))],
  29. decorator_list=[]),
  30. FunctionDef(name='things',
  31. args=arguments(args=[Name(id='self',
  32. ctx=Param())],
  33. vararg=None,
  34. kwarg=None,
  35. defaults=[]),
  36. body=[Print(dest=None,
  37. values=[Str(s='OK')],
  38. nl=True)],
  39. decorator_list=[])],
  40. decorator_list=[]),
  41. Assign(targets=[Name(id='y',
  42. ctx=Store())],
  43. value=Call(func=Name(id='Stuff',
  44. ctx=Load()),
  45. args=[],
  46. keywords=[],
  47. starargs=None,
  48. kwargs=None)),
  49. Expr(value=Call(func=Attribute(value=Name(id='y',
  50. ctx=Load()),
  51. attr='x',
  52. ctx=Load()),
  53. args=[],
  54. keywords=[],
  55. starargs=None,
  56. kwargs=None))])