123456789101112131415161718192021222324252627282930313233343536 |
- Module(body=[FunctionDef(name='f',
- args=arguments(args=[],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[For(target=Name(id='i',
- ctx=Store()),
- iter=Tuple(elts=[Num(n=1),
- Num(n=2),
- Num(n=3),
- Num(n=4),
- Num(n=5)],
- ctx=Load()),
- body=[If(test=Compare(left=Name(id='i',
- ctx=Load()),
- ops=[Eq()],
- comparators=[Num(n=4)]),
- body=[Return(value=None)],
- 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='f',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None)],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True)])
|