t529.trans 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Module(body=[ClassDef(name='test',
  2. bases=[],
  3. body=[FunctionDef(name='__hash__',
  4. args=arguments(args=[Name(id='self',
  5. ctx=Param())],
  6. vararg=None,
  7. kwarg=None,
  8. defaults=[]),
  9. body=[Return(value=Num(n=1))],
  10. decorator_list=[])],
  11. decorator_list=[]),
  12. Assign(targets=[Name(id='a',
  13. ctx=Store())],
  14. value=Call(func=Name(id='test',
  15. ctx=Load()),
  16. args=[],
  17. keywords=[],
  18. starargs=None,
  19. kwargs=None)),
  20. Assign(targets=[Name(id='b',
  21. ctx=Store())],
  22. value=Call(func=Name(id='test',
  23. ctx=Load()),
  24. args=[],
  25. keywords=[],
  26. starargs=None,
  27. kwargs=None)),
  28. Assign(targets=[Name(id='d',
  29. ctx=Store())],
  30. value=Dict(keys=[Name(id='a',
  31. ctx=Load())],
  32. values=[Num(n=5)])),
  33. Assign(targets=[Subscript(value=Name(id='d',
  34. ctx=Load()),
  35. slice=Index(value=Name(id='b',
  36. ctx=Load())),
  37. ctx=Store())],
  38. value=Num(n=6)),
  39. Print(dest=None,
  40. values=[Name(id='d',
  41. ctx=Load())],
  42. nl=True)])