1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- Module(body=[ClassDef(name='X',
- bases=[],
- body=[FunctionDef(name='stuff',
- args=arguments(args=[Name(id='self',
- ctx=Param())],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[Pass()],
- decorator_list=[])],
- decorator_list=[]),
- Assign(targets=[Name(id='x',
- ctx=Store())],
- value=Call(func=Name(id='X',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None)),
- Assign(targets=[Name(id='f',
- ctx=Store())],
- value=Call(func=Name(id='getattr',
- ctx=Load()),
- args=[Name(id='x',
- ctx=Load()),
- Str(s='stuff')],
- keywords=[],
- starargs=None,
- kwargs=None)),
- Print(dest=None,
- values=[Name(id='f',
- ctx=Load())],
- nl=True),
- Assign(targets=[Name(id='fu',
- ctx=Store())],
- value=Call(func=Name(id='getattr',
- ctx=Load()),
- args=[Name(id='X',
- ctx=Load()),
- Str(s='stuff')],
- keywords=[],
- starargs=None,
- kwargs=None)),
- Print(dest=None,
- values=[Name(id='fu',
- ctx=Load())],
- nl=True)])
|