123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- Module(body=[ClassDef(name='Stuff',
- bases=[],
- body=[FunctionDef(name='__init__',
- args=arguments(args=[Name(id='self',
- ctx=Param())],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[Assign(targets=[Attribute(value=Name(id='self',
- ctx=Load()),
- attr='a',
- ctx=Store())],
- value=Num(n=0)),
- Assign(targets=[Attribute(value=Name(id='self',
- ctx=Load()),
- attr='b',
- ctx=Store())],
- value=Str(s='b')),
- Assign(targets=[Attribute(value=Name(id='self',
- ctx=Load()),
- attr='c',
- ctx=Store())],
- value=List(elts=[Num(n=1),
- Num(n=2),
- Num(n=3)],
- ctx=Load())),
- Assign(targets=[Attribute(value=Name(id='self',
- ctx=Load()),
- attr='d',
- ctx=Store())],
- value=Num(n=100000000000000))],
- decorator_list=[]),
- FunctionDef(name='doit',
- args=arguments(args=[Name(id='self',
- ctx=Param())],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[AugAssign(target=Attribute(value=Name(id='self',
- ctx=Load()),
- attr='a',
- ctx=Store()),
- op=Add(),
- value=Num(n=10)),
- AugAssign(target=Attribute(value=Name(id='self',
- ctx=Load()),
- attr='b',
- ctx=Store()),
- op=Add(),
- value=Str(s='dog')),
- AugAssign(target=Attribute(value=Name(id='self',
- ctx=Load()),
- attr='c',
- ctx=Store()),
- op=Add(),
- value=List(elts=[Num(n=9),
- Num(n=10)],
- ctx=Load())),
- AugAssign(target=Attribute(value=Name(id='self',
- ctx=Load()),
- attr='d',
- ctx=Store()),
- op=Add(),
- value=Num(n=10000))],
- decorator_list=[])],
- decorator_list=[]),
- Assign(targets=[Name(id='s',
- ctx=Store())],
- value=Call(func=Name(id='Stuff',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None)),
- Expr(value=Call(func=Attribute(value=Name(id='s',
- ctx=Load()),
- attr='doit',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None)),
- Print(dest=None,
- values=[Attribute(value=Name(id='s',
- ctx=Load()),
- attr='a',
- ctx=Load())],
- nl=True),
- Print(dest=None,
- values=[Attribute(value=Name(id='s',
- ctx=Load()),
- attr='b',
- ctx=Load())],
- nl=True),
- Print(dest=None,
- values=[Attribute(value=Name(id='s',
- ctx=Load()),
- attr='c',
- ctx=Load())],
- nl=True),
- Print(dest=None,
- values=[Attribute(value=Name(id='s',
- ctx=Load()),
- attr='d',
- ctx=Load())],
- nl=True)])
|