t357.trans 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Module(body=[Assign(targets=[Name(id='d',
  2. ctx=Store())],
  3. value=Dict(keys=[Num(n=1),
  4. Num(n=3)],
  5. values=[Num(n=2),
  6. Num(n=4)])),
  7. Assign(targets=[Name(id='d2',
  8. ctx=Store())],
  9. value=Call(func=Name(id='dict',
  10. ctx=Load()),
  11. args=[Name(id='d',
  12. ctx=Load())],
  13. keywords=[],
  14. starargs=None,
  15. kwargs=None)),
  16. Print(dest=None,
  17. values=[Name(id='d',
  18. ctx=Load())],
  19. nl=True),
  20. Print(dest=None,
  21. values=[Name(id='d2',
  22. ctx=Load())],
  23. nl=True),
  24. Assign(targets=[Subscript(value=Name(id='d2',
  25. ctx=Load()),
  26. slice=Index(value=Num(n=4)),
  27. ctx=Store())],
  28. value=Num(n=6)),
  29. Print(dest=None,
  30. values=[Name(id='d',
  31. ctx=Load())],
  32. nl=True),
  33. Print(dest=None,
  34. values=[Name(id='d2',
  35. ctx=Load())],
  36. nl=True)])