t312.trans 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Module(body=[Assign(targets=[Name(id='s',
  2. ctx=Store())],
  3. value=Call(func=Name(id='set',
  4. ctx=Load()),
  5. args=[List(elts=[Num(n=1),
  6. Num(n=2),
  7. Num(n=3)],
  8. ctx=Load())],
  9. keywords=[],
  10. starargs=None,
  11. kwargs=None)),
  12. Assign(targets=[Name(id='copy_s',
  13. ctx=Store())],
  14. value=Call(func=Attribute(value=Name(id='s',
  15. ctx=Load()),
  16. attr='copy',
  17. ctx=Load()),
  18. args=[],
  19. keywords=[],
  20. starargs=None,
  21. kwargs=None)),
  22. Assign(targets=[Name(id='new_s',
  23. ctx=Store())],
  24. value=Call(func=Name(id='set',
  25. ctx=Load()),
  26. args=[Name(id='s',
  27. ctx=Load())],
  28. keywords=[],
  29. starargs=None,
  30. kwargs=None)),
  31. Expr(value=Call(func=Attribute(value=Name(id='copy_s',
  32. ctx=Load()),
  33. attr='add',
  34. ctx=Load()),
  35. args=[Num(n=42)],
  36. keywords=[],
  37. starargs=None,
  38. kwargs=None)),
  39. Expr(value=Call(func=Attribute(value=Name(id='new_s',
  40. ctx=Load()),
  41. attr='add',
  42. ctx=Load()),
  43. args=[Num(n=13)],
  44. keywords=[],
  45. starargs=None,
  46. kwargs=None)),
  47. Print(dest=None,
  48. values=[Name(id='s',
  49. ctx=Load())],
  50. nl=True),
  51. Print(dest=None,
  52. values=[Name(id='copy_s',
  53. ctx=Load())],
  54. nl=True),
  55. Print(dest=None,
  56. values=[Name(id='new_s',
  57. ctx=Load())],
  58. nl=True)])