t186.trans 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Module(body=[FunctionDef(name='funky',
  2. args=arguments(args=[],
  3. vararg=None,
  4. kwarg=None,
  5. defaults=[]),
  6. body=[Print(dest=None,
  7. values=[Str(s='cheese')],
  8. nl=True)],
  9. decorator_list=[]),
  10. FunctionDef(name='gen',
  11. args=arguments(args=[],
  12. vararg=None,
  13. kwarg=None,
  14. defaults=[]),
  15. body=[Assign(targets=[Name(id='i',
  16. ctx=Store())],
  17. value=Num(n=0)),
  18. Expr(value=Call(func=Name(id='funky',
  19. ctx=Load()),
  20. args=[],
  21. keywords=[],
  22. starargs=None,
  23. kwargs=None)),
  24. Expr(value=Yield(value=Num(n=1))),
  25. AugAssign(target=Name(id='i',
  26. ctx=Store()),
  27. op=Add(),
  28. value=Num(n=1))],
  29. decorator_list=[]),
  30. Assign(targets=[Name(id='g',
  31. ctx=Store())],
  32. value=Call(func=Name(id='gen',
  33. ctx=Load()),
  34. args=[],
  35. keywords=[],
  36. starargs=None,
  37. kwargs=None)),
  38. Print(dest=None,
  39. values=[Call(func=Attribute(value=Name(id='g',
  40. ctx=Load()),
  41. attr='next',
  42. ctx=Load()),
  43. args=[],
  44. keywords=[],
  45. starargs=None,
  46. kwargs=None)],
  47. nl=True)])