t179.trans 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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=[Assign(targets=[Name(id='i',
  8. ctx=Store())],
  9. value=Num(n=0)),
  10. While(test=Compare(left=Name(id='i',
  11. ctx=Load()),
  12. ops=[Lt()],
  13. comparators=[Name(id='n',
  14. ctx=Load())]),
  15. body=[Expr(value=Yield(value=Name(id='i',
  16. ctx=Load()))),
  17. Expr(value=Yield(value=BinOp(left=Name(id='i',
  18. ctx=Load()),
  19. op=Mult(),
  20. right=Num(n=10)))),
  21. AugAssign(target=Name(id='i',
  22. ctx=Store()),
  23. op=Add(),
  24. value=Num(n=1))],
  25. orelse=[])],
  26. decorator_list=[]),
  27. For(target=Name(id='i',
  28. ctx=Store()),
  29. iter=Call(func=Name(id='f',
  30. ctx=Load()),
  31. args=[Num(n=10)],
  32. keywords=[],
  33. starargs=None,
  34. kwargs=None),
  35. body=[Print(dest=None,
  36. values=[Name(id='i',
  37. ctx=Load())],
  38. nl=True)],
  39. orelse=[])])