123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- 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=[]),
- FunctionDef(name='zrange',
- args=arguments(args=[Name(id='n',
- ctx=Param())],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[For(target=Name(id='y',
- ctx=Store()),
- iter=Call(func=Name(id='yrange',
- ctx=Load()),
- args=[Name(id='n',
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None),
- body=[Expr(value=Yield(value=Name(id='y',
- ctx=Load())))],
- orelse=[])],
- decorator_list=[]),
- Print(dest=None,
- values=[Call(func=Name(id='list',
- ctx=Load()),
- args=[Call(func=Name(id='zrange',
- ctx=Load()),
- args=[Num(n=5)],
- keywords=[],
- starargs=None,
- kwargs=None)],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True)])
|