t549.trans 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. Module(body=[Assign(targets=[Name(id='s',
  2. ctx=Store())],
  3. value=SetComp(elt=BinOp(left=Name(id='i',
  4. ctx=Load()),
  5. op=Mult(),
  6. right=Name(id='i',
  7. ctx=Load())),
  8. generators=[comprehension(target=Name(id='i',
  9. ctx=Store()),
  10. iter=Call(func=Name(id='range',
  11. ctx=Load()),
  12. args=[Num(n=100)],
  13. keywords=[],
  14. starargs=None,
  15. kwargs=None),
  16. ifs=[Compare(left=BinOp(left=Name(id='i',
  17. ctx=Load()),
  18. op=BitAnd(),
  19. right=Num(n=1)),
  20. ops=[Eq()],
  21. comparators=[Num(n=1)])])])),
  22. Print(dest=None,
  23. values=[Name(id='s',
  24. ctx=Load())],
  25. nl=True),
  26. Assign(targets=[Name(id='s2',
  27. ctx=Store())],
  28. value=SetComp(elt=BinOp(left=BinOp(left=BinOp(left=Num(n=2),
  29. op=Mult(),
  30. right=Name(id='y',
  31. ctx=Load())),
  32. op=Add(),
  33. right=Name(id='x',
  34. ctx=Load())),
  35. op=Add(),
  36. right=Num(n=1)),
  37. generators=[comprehension(target=Name(id='x',
  38. ctx=Store()),
  39. iter=Tuple(elts=[Num(n=0)],
  40. ctx=Load()),
  41. ifs=[]),
  42. comprehension(target=Name(id='y',
  43. ctx=Store()),
  44. iter=Tuple(elts=[Num(n=1)],
  45. ctx=Load()),
  46. ifs=[])])),
  47. Print(dest=None,
  48. values=[Name(id='s2',
  49. ctx=Load())],
  50. nl=True)])