t189.trans 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Module(body=[FunctionDef(name='f',
  2. args=arguments(args=[Name(id='n',
  3. ctx=Param())],
  4. vararg=None,
  5. kwarg=None,
  6. defaults=[]),
  7. body=[Expr(value=Yield(value=Num(n=1))),
  8. Assign(targets=[Tuple(elts=[Name(id='a',
  9. ctx=Store()),
  10. Name(id='b',
  11. ctx=Store())],
  12. ctx=Store())],
  13. value=Tuple(elts=[Name(id='n',
  14. ctx=Load()),
  15. BinOp(left=Name(id='n',
  16. ctx=Load()),
  17. op=Add(),
  18. right=Num(n=1))],
  19. ctx=Load())),
  20. Expr(value=Yield(value=Num(n=2))),
  21. Expr(value=Yield(value=Name(id='a',
  22. ctx=Load()))),
  23. Expr(value=Yield(value=Name(id='b',
  24. ctx=Load())))],
  25. decorator_list=[]),
  26. Assign(targets=[Name(id='a',
  27. ctx=Store())],
  28. value=Num(n=9999)),
  29. Assign(targets=[Name(id='b',
  30. ctx=Store())],
  31. value=Num(n=9999)),
  32. For(target=Name(id='i',
  33. ctx=Store()),
  34. iter=Call(func=Name(id='f',
  35. ctx=Load()),
  36. args=[Num(n=20)],
  37. keywords=[],
  38. starargs=None,
  39. kwargs=None),
  40. body=[Print(dest=None,
  41. values=[Name(id='i',
  42. ctx=Load())],
  43. nl=True)],
  44. orelse=[])])