t348.trans 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. Module(body=[ClassDef(name='SuperClass',
  2. bases=[],
  3. body=[FunctionDef(name='apply',
  4. args=arguments(args=[Name(id='self',
  5. ctx=Param())],
  6. vararg=None,
  7. kwarg=None,
  8. defaults=[]),
  9. body=[Return(value=Str(s='SuperClass'))],
  10. decorator_list=[])],
  11. decorator_list=[]),
  12. ClassDef(name='SubClassA',
  13. bases=[Name(id='SuperClass',
  14. ctx=Load())],
  15. body=[FunctionDef(name='apply',
  16. args=arguments(args=[Name(id='self',
  17. ctx=Param())],
  18. vararg=None,
  19. kwarg=None,
  20. defaults=[]),
  21. body=[Return(value=Str(s='SubClassA'))],
  22. decorator_list=[])],
  23. decorator_list=[]),
  24. Assign(targets=[Name(id='x',
  25. ctx=Store())],
  26. value=Call(func=Name(id='SubClassA',
  27. ctx=Load()),
  28. args=[],
  29. keywords=[],
  30. starargs=None,
  31. kwargs=None)),
  32. Print(dest=None,
  33. values=[Call(func=Attribute(value=Name(id='x',
  34. ctx=Load()),
  35. attr='apply',
  36. ctx=Load()),
  37. args=[],
  38. keywords=[],
  39. starargs=None,
  40. kwargs=None)],
  41. nl=True)])