1234567891011121314151617181920212223242526272829303132 |
- Module(body=[FunctionDef(name='yrange',
- args=arguments(args=[Name(id='n',
- ctx=Param())],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[For(target=Name(id='i',
- ctx=Store()),
- iter=Call(func=Name(id='range',
- ctx=Load()),
- args=[Name(id='n',
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None),
- body=[Expr(value=Yield(value=Name(id='i',
- ctx=Load())))],
- orelse=[])],
- decorator_list=[]),
- Print(dest=None,
- values=[Call(func=Name(id='list',
- ctx=Load()),
- args=[Call(func=Name(id='yrange',
- ctx=Load()),
- args=[Num(n=5)],
- keywords=[],
- starargs=None,
- kwargs=None)],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True)])
|