1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- Module(body=[ClassDef(name='Stuff',
- bases=[],
- body=[FunctionDef(name='__init__',
- args=arguments(args=[Name(id='self',
- ctx=Param())],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[FunctionDef(name='tmp',
- args=arguments(args=[],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[Expr(value=Call(func=Attribute(value=Name(id='self',
- ctx=Load()),
- attr='things',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None))],
- decorator_list=[]),
- Assign(targets=[Attribute(value=Name(id='self',
- ctx=Load()),
- attr='x',
- ctx=Store())],
- value=Name(id='tmp',
- ctx=Load()))],
- decorator_list=[]),
- FunctionDef(name='things',
- args=arguments(args=[Name(id='self',
- ctx=Param())],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[Print(dest=None,
- values=[Str(s='OK')],
- nl=True)],
- decorator_list=[])],
- decorator_list=[]),
- Assign(targets=[Name(id='y',
- ctx=Store())],
- value=Call(func=Name(id='Stuff',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None)),
- Expr(value=Call(func=Attribute(value=Name(id='y',
- ctx=Load()),
- attr='x',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None))])
|