t238.trans 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Module(body=[FunctionDef(name='toString',
  2. args=arguments(args=[],
  3. vararg=None,
  4. kwarg=None,
  5. defaults=[]),
  6. body=[Print(dest=None,
  7. values=[Str(s='wee')],
  8. nl=True)],
  9. decorator_list=[]),
  10. ClassDef(name='stuff',
  11. bases=[],
  12. body=[FunctionDef(name='toString',
  13. args=arguments(args=[Name(id='self',
  14. ctx=Param())],
  15. vararg=None,
  16. kwarg=None,
  17. defaults=[]),
  18. body=[Return(value=Str(s='waa'))],
  19. decorator_list=[]),
  20. FunctionDef(name='valueOf',
  21. args=arguments(args=[Name(id='self',
  22. ctx=Param())],
  23. vararg=None,
  24. kwarg=None,
  25. defaults=[]),
  26. body=[Return(value=Str(s='stuff'))],
  27. decorator_list=[])],
  28. decorator_list=[]),
  29. Expr(value=Call(func=Name(id='toString',
  30. ctx=Load()),
  31. args=[],
  32. keywords=[],
  33. starargs=None,
  34. kwargs=None)),
  35. Assign(targets=[Name(id='s',
  36. ctx=Store())],
  37. value=Call(func=Name(id='stuff',
  38. ctx=Load()),
  39. args=[],
  40. keywords=[],
  41. starargs=None,
  42. kwargs=None)),
  43. Print(dest=None,
  44. values=[Call(func=Attribute(value=Name(id='s',
  45. ctx=Load()),
  46. attr='toString',
  47. ctx=Load()),
  48. args=[],
  49. keywords=[],
  50. starargs=None,
  51. kwargs=None)],
  52. nl=True),
  53. Print(dest=None,
  54. values=[Call(func=Attribute(value=Name(id='s',
  55. ctx=Load()),
  56. attr='valueOf',
  57. ctx=Load()),
  58. args=[],
  59. keywords=[],
  60. starargs=None,
  61. kwargs=None)],
  62. nl=True)])