t301.trans 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. Module(body=[Print(dest=None,
  2. values=[Str(s='# actual super & subsets')],
  3. nl=True),
  4. Assign(targets=[Name(id='sup',
  5. ctx=Store())],
  6. value=Call(func=Name(id='set',
  7. ctx=Load()),
  8. args=[List(elts=[Num(n=1),
  9. Num(n=2),
  10. Num(n=3),
  11. Num(n=4),
  12. Num(n=100)],
  13. ctx=Load())],
  14. keywords=[],
  15. starargs=None,
  16. kwargs=None)),
  17. Print(dest=None,
  18. values=[Name(id='sup',
  19. ctx=Load())],
  20. nl=True),
  21. Assign(targets=[Name(id='sub',
  22. ctx=Store())],
  23. value=Call(func=Name(id='set',
  24. ctx=Load()),
  25. args=[List(elts=[Num(n=2),
  26. Num(n=3),
  27. Num(n=4)],
  28. ctx=Load())],
  29. keywords=[],
  30. starargs=None,
  31. kwargs=None)),
  32. Print(dest=None,
  33. values=[Name(id='sub',
  34. ctx=Load())],
  35. nl=True),
  36. Print(dest=None,
  37. values=[Str(s='# forwards')],
  38. nl=True),
  39. Print(dest=None,
  40. values=[Call(func=Attribute(value=Name(id='sup',
  41. ctx=Load()),
  42. attr='isdisjoint',
  43. ctx=Load()),
  44. args=[Name(id='sub',
  45. ctx=Load())],
  46. keywords=[],
  47. starargs=None,
  48. kwargs=None)],
  49. nl=True),
  50. Print(dest=None,
  51. values=[Compare(left=Name(id='sup',
  52. ctx=Load()),
  53. ops=[Gt()],
  54. comparators=[Name(id='sub',
  55. ctx=Load())])],
  56. nl=True),
  57. Print(dest=None,
  58. values=[Call(func=Attribute(value=Name(id='sup',
  59. ctx=Load()),
  60. attr='issuperset',
  61. ctx=Load()),
  62. args=[Name(id='sub',
  63. ctx=Load())],
  64. keywords=[],
  65. starargs=None,
  66. kwargs=None)],
  67. nl=True),
  68. Print(dest=None,
  69. values=[Compare(left=Name(id='sup',
  70. ctx=Load()),
  71. ops=[GtE()],
  72. comparators=[Name(id='sub',
  73. ctx=Load())])],
  74. nl=True),
  75. Print(dest=None,
  76. values=[Compare(left=Name(id='sup',
  77. ctx=Load()),
  78. ops=[Eq()],
  79. comparators=[Name(id='sub',
  80. ctx=Load())])],
  81. nl=True),
  82. Print(dest=None,
  83. values=[Compare(left=Name(id='sup',
  84. ctx=Load()),
  85. ops=[NotEq()],
  86. comparators=[Name(id='sub',
  87. ctx=Load())])],
  88. nl=True),
  89. Print(dest=None,
  90. values=[Call(func=Attribute(value=Name(id='sup',
  91. ctx=Load()),
  92. attr='issubset',
  93. ctx=Load()),
  94. args=[Name(id='sub',
  95. ctx=Load())],
  96. keywords=[],
  97. starargs=None,
  98. kwargs=None)],
  99. nl=True),
  100. Print(dest=None,
  101. values=[Compare(left=Name(id='sup',
  102. ctx=Load()),
  103. ops=[LtE()],
  104. comparators=[Name(id='sub',
  105. ctx=Load())])],
  106. nl=True),
  107. Print(dest=None,
  108. values=[Compare(left=Name(id='sup',
  109. ctx=Load()),
  110. ops=[Lt()],
  111. comparators=[Name(id='sub',
  112. ctx=Load())])],
  113. nl=True),
  114. Print(dest=None,
  115. values=[Str(s='# backwards')],
  116. nl=True),
  117. Print(dest=None,
  118. values=[Call(func=Attribute(value=Name(id='sub',
  119. ctx=Load()),
  120. attr='isdisjoint',
  121. ctx=Load()),
  122. args=[Name(id='sup',
  123. ctx=Load())],
  124. keywords=[],
  125. starargs=None,
  126. kwargs=None)],
  127. nl=True),
  128. Print(dest=None,
  129. values=[Compare(left=Name(id='sub',
  130. ctx=Load()),
  131. ops=[Gt()],
  132. comparators=[Name(id='sup',
  133. ctx=Load())])],
  134. nl=True),
  135. Print(dest=None,
  136. values=[Call(func=Attribute(value=Name(id='sub',
  137. ctx=Load()),
  138. attr='issuperset',
  139. ctx=Load()),
  140. args=[Name(id='sup',
  141. ctx=Load())],
  142. keywords=[],
  143. starargs=None,
  144. kwargs=None)],
  145. nl=True),
  146. Print(dest=None,
  147. values=[Compare(left=Name(id='sub',
  148. ctx=Load()),
  149. ops=[GtE()],
  150. comparators=[Name(id='sup',
  151. ctx=Load())])],
  152. nl=True),
  153. Print(dest=None,
  154. values=[Compare(left=Name(id='sub',
  155. ctx=Load()),
  156. ops=[Eq()],
  157. comparators=[Name(id='sup',
  158. ctx=Load())])],
  159. nl=True),
  160. Print(dest=None,
  161. values=[Compare(left=Name(id='sub',
  162. ctx=Load()),
  163. ops=[NotEq()],
  164. comparators=[Name(id='sup',
  165. ctx=Load())])],
  166. nl=True),
  167. Print(dest=None,
  168. values=[Call(func=Attribute(value=Name(id='sub',
  169. ctx=Load()),
  170. attr='issubset',
  171. ctx=Load()),
  172. args=[Name(id='sup',
  173. ctx=Load())],
  174. keywords=[],
  175. starargs=None,
  176. kwargs=None)],
  177. nl=True),
  178. Print(dest=None,
  179. values=[Compare(left=Name(id='sub',
  180. ctx=Load()),
  181. ops=[LtE()],
  182. comparators=[Name(id='sup',
  183. ctx=Load())])],
  184. nl=True),
  185. Print(dest=None,
  186. values=[Compare(left=Name(id='sub',
  187. ctx=Load()),
  188. ops=[Lt()],
  189. comparators=[Name(id='sup',
  190. ctx=Load())])],
  191. nl=True)])