t327.trans 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. Module(body=[Assign(targets=[Name(id='myList',
  2. ctx=Store())],
  3. value=List(elts=[Num(n=1),
  4. Num(n=2),
  5. Num(n=3),
  6. Str(s='foo'),
  7. Num(n=4),
  8. Num(n=5),
  9. Name(id='True',
  10. ctx=Load()),
  11. Name(id='False',
  12. ctx=Load())],
  13. ctx=Load())),
  14. Print(dest=None,
  15. values=[Call(func=Attribute(value=Name(id='myList',
  16. ctx=Load()),
  17. attr='index',
  18. ctx=Load()),
  19. args=[Str(s='foo')],
  20. keywords=[],
  21. starargs=None,
  22. kwargs=None)],
  23. nl=True),
  24. Print(dest=None,
  25. values=[Compare(left=Str(s='foo'),
  26. ops=[In()],
  27. comparators=[Name(id='myList',
  28. ctx=Load())])],
  29. nl=True),
  30. Print(dest=None,
  31. values=[Call(func=Attribute(value=Name(id='myList',
  32. ctx=Load()),
  33. attr='index',
  34. ctx=Load()),
  35. args=[Name(id='True',
  36. ctx=Load())],
  37. keywords=[],
  38. starargs=None,
  39. kwargs=None)],
  40. nl=True),
  41. Print(dest=None,
  42. values=[Compare(left=Num(n=2),
  43. ops=[In()],
  44. comparators=[Name(id='myList',
  45. ctx=Load())])],
  46. nl=True)])