123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- Module(body=[Assign(targets=[Name(id='c',
- ctx=Store())],
- value=Str(s='squirrel')),
- Assign(targets=[Name(id='time',
- ctx=Store())],
- value=Num(n=0)),
- FunctionDef(name='x',
- args=arguments(args=[],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[Global(names=['time']),
- AugAssign(target=Name(id='time',
- ctx=Store()),
- op=Add(),
- value=Num(n=1)),
- If(test=Compare(left=Name(id='time',
- ctx=Load()),
- ops=[Eq()],
- comparators=[Num(n=1)]),
- body=[Assign(targets=[Name(id='b',
- ctx=Store())],
- value=Str(s='dog'))],
- orelse=[Assign(targets=[Name(id='b',
- ctx=Store())],
- value=Str(s='banana'))]),
- Print(dest=None,
- values=[Name(id='b',
- ctx=Load()),
- Name(id='c',
- ctx=Load())],
- nl=True),
- FunctionDef(name='y',
- args=arguments(args=[Name(id='d',
- ctx=Param())],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[Assign(targets=[Name(id='a',
- ctx=Store())],
- value=Str(s='cat')),
- Print(dest=None,
- values=[Name(id='a',
- ctx=Load()),
- Name(id='b',
- ctx=Load()),
- Name(id='d',
- ctx=Load())],
- nl=True),
- FunctionDef(name='z',
- args=arguments(args=[],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[For(target=Name(id='i',
- ctx=Store()),
- iter=Call(func=Name(id='range',
- ctx=Load()),
- args=[BinOp(left=Num(n=10),
- op=Mult(),
- right=Name(id='time',
- ctx=Load()))],
- keywords=[],
- starargs=None,
- kwargs=None),
- body=[Expr(value=Yield(value=Tuple(elts=[Name(id='i',
- ctx=Load()),
- Name(id='a',
- ctx=Load()),
- Name(id='b',
- ctx=Load()),
- Name(id='c',
- ctx=Load()),
- Name(id='d',
- ctx=Load())],
- ctx=Load())))],
- orelse=[])],
- decorator_list=[]),
- Return(value=Name(id='z',
- ctx=Load()))],
- decorator_list=[]),
- Return(value=Call(func=Name(id='y',
- ctx=Load()),
- args=[Str(s='blorp')],
- keywords=[],
- starargs=None,
- kwargs=None))],
- decorator_list=[]),
- For(target=Name(id='v',
- ctx=Store()),
- iter=Call(func=Call(func=Name(id='x',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None),
- body=[Print(dest=None,
- values=[Name(id='v',
- ctx=Load())],
- nl=True)],
- orelse=[]),
- For(target=Name(id='v',
- ctx=Store()),
- iter=Call(func=Call(func=Name(id='x',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None),
- body=[Print(dest=None,
- values=[Name(id='v',
- ctx=Load())],
- nl=True)],
- orelse=[])])
|