t144.trans 2.9 KB

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