123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- Module(body=[FunctionDef(name='foo',
- args=arguments(args=[Name(id='value',
- ctx=Param())],
- vararg=None,
- kwarg=None,
- defaults=[Name(id='None',
- ctx=Load())]),
- body=[For(target=Name(id='i',
- ctx=Store()),
- iter=List(elts=[Num(n=-1),
- Num(n=0),
- Num(n=1),
- Num(n=2),
- Num(n=3),
- Num(n=4)],
- ctx=Load()),
- body=[If(test=Compare(left=Name(id='i',
- ctx=Load()),
- ops=[Lt()],
- comparators=[Num(n=0)]),
- body=[Continue()],
- orelse=[If(test=Compare(left=Name(id='i',
- ctx=Load()),
- ops=[Eq()],
- comparators=[Num(n=0)]),
- body=[Expr(value=Yield(value=Num(n=0)))],
- orelse=[If(test=Compare(left=Name(id='i',
- ctx=Load()),
- ops=[Eq()],
- comparators=[Num(n=1)]),
- body=[Expr(value=Yield(value=Num(n=1))),
- Expr(value=Yield(value=Name(id='value',
- ctx=Load()))),
- Expr(value=Yield(value=Num(n=2)))],
- orelse=[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='foo',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None)],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True)])
|