(self)
Returns whether the functon is commutative.
Returns whether the functon is commutative.
Returns whether the functon is commutative .
def is_commutative(self):
        """
        Returns whether the functon is commutative.
        """
        if all(getattr(t, 'is_commutative') for t in self.args):
            return True
        else:
            return False
def is_commutative ( self ) : if all ( getattr ( t , 'is_commutative' ) for t in self . args ) : return True else : return False