t23.trans 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Module(body=[FunctionDef(name='test',
  2. args=arguments(args=[Name(id='x',
  3. ctx=Param())],
  4. vararg=None,
  5. kwarg=None,
  6. defaults=[]),
  7. body=[Return(value=Name(id='x',
  8. ctx=Load()))],
  9. decorator_list=[]),
  10. Assign(targets=[Name(id='y',
  11. ctx=Store())],
  12. value=BinOp(left=BinOp(left=BinOp(left=Call(func=Name(id='test',
  13. ctx=Load()),
  14. args=[Num(n=1)],
  15. keywords=[],
  16. starargs=None,
  17. kwargs=None),
  18. op=Mult(),
  19. right=Num(n=2)),
  20. op=Add(),
  21. right=BinOp(left=Call(func=Name(id='test',
  22. ctx=Load()),
  23. args=[Num(n=3)],
  24. keywords=[],
  25. starargs=None,
  26. kwargs=None),
  27. op=Mult(),
  28. right=Num(n=4))),
  29. op=Add(),
  30. right=BinOp(left=Call(func=Name(id='test',
  31. ctx=Load()),
  32. args=[Num(n=5)],
  33. keywords=[],
  34. starargs=None,
  35. kwargs=None),
  36. op=Mult(),
  37. right=Num(n=6)))),
  38. Print(dest=None,
  39. values=[Name(id='y',
  40. ctx=Load())],
  41. nl=True)])