123456789101112131415161718192021222324252627282930313233 |
- Module(body=[FunctionDef(name='f',
- args=arguments(args=[],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[Assign(targets=[Name(id='y',
- ctx=Store())],
- value=Num(n=0)),
- While(test=Compare(left=Name(id='y',
- ctx=Load()),
- ops=[Eq()],
- comparators=[Num(n=0)]),
- body=[AugAssign(target=Name(id='y',
- ctx=Store()),
- op=Add(),
- value=Num(n=1)),
- Expr(value=Yield(value=Name(id='y',
- ctx=Load())))],
- orelse=[])],
- decorator_list=[]),
- For(target=Name(id='i',
- ctx=Store()),
- iter=Call(func=Name(id='f',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None),
- body=[Print(dest=None,
- values=[Name(id='i',
- ctx=Load())],
- nl=True)],
- orelse=[])])
|