t212.trans 3.3 KB

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