12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- Module(body=[ClassDef(name='obj',
- 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='num',
- ctx=Store())],
- value=Num(n=2))],
- decorator_list=[]),
- FunctionDef(name='delete',
- 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='num',
- ctx=Load())],
- nl=True)],
- decorator_list=[]),
- FunctionDef(name='abc',
- args=arguments(args=[Name(id='self',
- ctx=Param())],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[Print(dest=None,
- values=[BinOp(left=Attribute(value=Name(id='self',
- ctx=Load()),
- attr='num',
- ctx=Load()),
- op=Add(),
- right=Num(n=1))],
- nl=True)],
- decorator_list=[])],
- decorator_list=[]),
- Assign(targets=[Name(id='a',
- ctx=Store())],
- value=Call(func=Name(id='obj',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None)),
- Expr(value=Call(func=Attribute(value=Name(id='a',
- ctx=Load()),
- attr='abc',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None)),
- Expr(value=Call(func=Attribute(value=Name(id='a',
- ctx=Load()),
- attr='delete',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None))])
|