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