12345678910111213141516171819202122232425262728293031323334 |
- Module(body=[ClassDef(name='X',
- bases=[],
- body=[Assign(targets=[Name(id='x',
- ctx=Store())],
- value=Num(n=4))],
- 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='stuff',
- ctx=Store())],
- value=Attribute(value=Name(id='x',
- ctx=Load()),
- attr='x',
- ctx=Load())),
- Print(dest=None,
- values=[Name(id='stuff',
- ctx=Load())],
- nl=True),
- Assign(targets=[Name(id='things',
- ctx=Store())],
- value=Attribute(value=Name(id='X',
- ctx=Load()),
- attr='x',
- ctx=Load())),
- Print(dest=None,
- values=[Name(id='things',
- ctx=Load())],
- nl=True)])
|