t379.trans 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Module(body=[Assign(targets=[Name(id='things',
  2. ctx=Store())],
  3. value=List(elts=[Str(s='hi'),
  4. Str(s='a'),
  5. Str(s='b'),
  6. Str(s='c')],
  7. ctx=Load())),
  8. Expr(value=Call(func=Attribute(value=Name(id='things',
  9. ctx=Load()),
  10. attr='insert',
  11. ctx=Load()),
  12. args=[Call(func=Name(id='len',
  13. ctx=Load()),
  14. args=[Name(id='things',
  15. ctx=Load())],
  16. keywords=[],
  17. starargs=None,
  18. kwargs=None),
  19. Str(s='bye')],
  20. keywords=[],
  21. starargs=None,
  22. kwargs=None)),
  23. Print(dest=None,
  24. values=[Name(id='things',
  25. ctx=Load())],
  26. nl=True),
  27. Expr(value=Call(func=Attribute(value=Name(id='things',
  28. ctx=Load()),
  29. attr='insert',
  30. ctx=Load()),
  31. args=[BinOp(left=Call(func=Name(id='len',
  32. ctx=Load()),
  33. args=[Name(id='things',
  34. ctx=Load())],
  35. keywords=[],
  36. starargs=None,
  37. kwargs=None),
  38. op=Add(),
  39. right=Num(n=3)),
  40. Str(s='surpise')],
  41. keywords=[],
  42. starargs=None,
  43. kwargs=None)),
  44. Print(dest=None,
  45. values=[Name(id='things',
  46. ctx=Load())],
  47. nl=True)])