123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- Module(body=[ClassDef(name='Test',
- bases=[],
- body=[FunctionDef(name='__init__',
- args=arguments(args=[Name(id='self',
- ctx=Param()),
- Name(id='v',
- ctx=Param())],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[Assign(targets=[Attribute(value=Name(id='self',
- ctx=Load()),
- attr='value',
- ctx=Store())],
- value=Name(id='v',
- ctx=Load()))],
- decorator_list=[]),
- FunctionDef(name='__call__',
- 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='value',
- ctx=Load())],
- nl=True)],
- decorator_list=[])],
- decorator_list=[]),
- Assign(targets=[Name(id='x',
- ctx=Store())],
- value=Call(func=Name(id='Test',
- ctx=Load()),
- args=[Str(s='OK')],
- keywords=[],
- starargs=None,
- kwargs=None)),
- Expr(value=Call(func=Name(id='x',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None))])
|