1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- Module(body=[FunctionDef(name='funky',
- args=arguments(args=[],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[Print(dest=None,
- values=[Str(s='cheese')],
- nl=True)],
- decorator_list=[]),
- FunctionDef(name='gen',
- args=arguments(args=[],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[Assign(targets=[Name(id='i',
- ctx=Store())],
- value=Num(n=0)),
- Expr(value=Call(func=Name(id='funky',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None)),
- Expr(value=Yield(value=Num(n=1))),
- AugAssign(target=Name(id='i',
- ctx=Store()),
- op=Add(),
- value=Num(n=1))],
- decorator_list=[]),
- Assign(targets=[Name(id='g',
- ctx=Store())],
- value=Call(func=Name(id='gen',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None)),
- Print(dest=None,
- values=[Call(func=Attribute(value=Name(id='g',
- ctx=Load()),
- attr='next',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True)])
|