コード例 #1
0
ファイル: binop.py プロジェクト: pcreed/WPolyanna
 def __getitem__(self,x):
     Operation.check_input(self,x)
     (a,b) = x
     if self.idem and a==b:
         return a
     if self.comm and b < a:
         tmp = a
         a = b
         b = tmp
     return self.f[(a,b)]