123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- Module(body=[Print(dest=None,
- values=[Str(s='EVALUATE TO TRUE')],
- nl=True),
- Print(dest=None,
- values=[Call(func=Name(id='isinstance',
- ctx=Load()),
- args=[Str(s='hello'),
- Name(id='str',
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True),
- Print(dest=None,
- values=[Call(func=Name(id='isinstance',
- ctx=Load()),
- args=[Num(n=1234),
- Name(id='int',
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True),
- Print(dest=None,
- values=[Call(func=Name(id='isinstance',
- ctx=Load()),
- args=[Num(n=56),
- Name(id='long',
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True),
- Print(dest=None,
- values=[Call(func=Name(id='isinstance',
- ctx=Load()),
- args=[Num(n=7.89),
- Name(id='float',
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True),
- ClassDef(name='A',
- bases=[],
- body=[FunctionDef(name='__init__',
- args=arguments(args=[Name(id='self',
- ctx=Param())],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[Pass()],
- decorator_list=[])],
- decorator_list=[]),
- ClassDef(name='B',
- bases=[Name(id='A',
- ctx=Load())],
- body=[FunctionDef(name='__init__',
- args=arguments(args=[Name(id='self',
- ctx=Param())],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[Pass()],
- decorator_list=[])],
- decorator_list=[]),
- ClassDef(name='C',
- bases=[Name(id='B',
- ctx=Load())],
- body=[FunctionDef(name='__init__',
- args=arguments(args=[Name(id='self',
- ctx=Param())],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[Pass()],
- decorator_list=[])],
- decorator_list=[]),
- ClassDef(name='D',
- bases=[],
- body=[FunctionDef(name='__init__',
- args=arguments(args=[Name(id='self',
- ctx=Param())],
- vararg=None,
- kwarg=None,
- defaults=[]),
- body=[Pass()],
- decorator_list=[])],
- decorator_list=[]),
- Assign(targets=[Name(id='a',
- ctx=Store())],
- value=Call(func=Name(id='A',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None)),
- Print(dest=None,
- values=[Call(func=Name(id='isinstance',
- ctx=Load()),
- args=[Name(id='a',
- ctx=Load()),
- Name(id='A',
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True),
- Print(dest=None,
- values=[Call(func=Name(id='isinstance',
- ctx=Load()),
- args=[Call(func=Name(id='A',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None),
- Name(id='A',
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True),
- Print(dest=None,
- values=[Call(func=Name(id='isinstance',
- ctx=Load()),
- args=[Call(func=Name(id='B',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None),
- Name(id='A',
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True),
- Print(dest=None,
- values=[Call(func=Name(id='isinstance',
- ctx=Load()),
- args=[Call(func=Name(id='C',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None),
- Name(id='A',
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True),
- Print(dest=None,
- values=[Call(func=Name(id='isinstance',
- ctx=Load()),
- args=[Call(func=Name(id='C',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None),
- Tuple(elts=[Name(id='D',
- ctx=Load()),
- Name(id='A',
- ctx=Load())],
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True),
- Print(dest=None,
- values=[Str(s='EVALUATE TO FALSE')],
- nl=True),
- Print(dest=None,
- values=[Call(func=Name(id='isinstance',
- ctx=Load()),
- args=[Call(func=Name(id='D',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None),
- Name(id='A',
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True),
- Print(dest=None,
- values=[Call(func=Name(id='isinstance',
- ctx=Load()),
- args=[Call(func=Name(id='A',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None),
- Tuple(elts=[Name(id='B',
- ctx=Load()),
- Name(id='C',
- ctx=Load())],
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True),
- Print(dest=None,
- values=[Call(func=Name(id='isinstance',
- ctx=Load()),
- args=[Call(func=Name(id='A',
- ctx=Load()),
- args=[],
- keywords=[],
- starargs=None,
- kwargs=None),
- Tuple(elts=[Name(id='D',
- ctx=Load()),
- Tuple(elts=[Name(id='B',
- ctx=Load()),
- Name(id='C',
- ctx=Load())],
- ctx=Load())],
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True),
- Print(dest=None,
- values=[Call(func=Name(id='isinstance',
- ctx=Load()),
- args=[Str(s='hello'),
- Name(id='int',
- ctx=Load())],
- keywords=[],
- starargs=None,
- kwargs=None)],
- nl=True)])
|