t324.trans 1.4 KB

123456789101112131415161718192021222324252627282930
  1. Module(body=[Assign(targets=[Name(id='x',
  2. ctx=Store())],
  3. value=Dict(keys=[Str(s='foo')],
  4. values=[Num(n=1)])),
  5. Print(dest=None,
  6. values=[Name(id='x',
  7. ctx=Load())],
  8. nl=True),
  9. Print(dest=None,
  10. values=[Subscript(value=Name(id='x',
  11. ctx=Load()),
  12. slice=Index(value=Str(s='foo')),
  13. ctx=Load())],
  14. nl=True),
  15. Assign(targets=[Subscript(value=Name(id='x',
  16. ctx=Load()),
  17. slice=Index(value=Str(s='foo')),
  18. ctx=Store())],
  19. value=Name(id='None',
  20. ctx=Load())),
  21. Print(dest=None,
  22. values=[Name(id='x',
  23. ctx=Load())],
  24. nl=True),
  25. Print(dest=None,
  26. values=[Subscript(value=Name(id='x',
  27. ctx=Load()),
  28. slice=Index(value=Str(s='foo')),
  29. ctx=Load())],
  30. nl=True)])