t451.trans 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Module(body=[Assign(targets=[Name(id='d1',
  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=Dict(keys=[],
  10. values=[])),
  11. Assign(targets=[Subscript(value=Name(id='d2',
  12. ctx=Load()),
  13. slice=Index(value=Num(n=1)),
  14. ctx=Store())],
  15. value=Num(n=2)),
  16. Assign(targets=[Subscript(value=Name(id='d2',
  17. ctx=Load()),
  18. slice=Index(value=Num(n=3)),
  19. ctx=Store())],
  20. value=Num(n=4)),
  21. Print(dest=None,
  22. values=[Subscript(value=Name(id='d1',
  23. ctx=Load()),
  24. slice=Index(value=Num(n=1)),
  25. ctx=Load())],
  26. nl=True),
  27. Print(dest=None,
  28. values=[Subscript(value=Name(id='d2',
  29. ctx=Load()),
  30. slice=Index(value=Num(n=3)),
  31. ctx=Load())],
  32. nl=True),
  33. Print(dest=None,
  34. values=[Compare(left=Num(n=1),
  35. ops=[In()],
  36. comparators=[Name(id='d1',
  37. ctx=Load())])],
  38. nl=True),
  39. Print(dest=None,
  40. values=[Compare(left=Num(n=2),
  41. ops=[In()],
  42. comparators=[Name(id='d1',
  43. ctx=Load())])],
  44. nl=True),
  45. Print(dest=None,
  46. values=[Compare(left=Name(id='d1',
  47. ctx=Load()),
  48. ops=[Eq()],
  49. comparators=[Name(id='d2',
  50. ctx=Load())])],
  51. nl=True),
  52. Delete(targets=[Subscript(value=Name(id='d1',
  53. ctx=Load()),
  54. slice=Index(value=Num(n=3)),
  55. ctx=Del())]),
  56. Print(dest=None,
  57. values=[Compare(left=Name(id='d1',
  58. ctx=Load()),
  59. ops=[Eq()],
  60. comparators=[Name(id='d2',
  61. ctx=Load())])],
  62. nl=True)])