def remake_constructor(self): if self.is_reversed(): # Use the 'not_proper_superset' function if it # is reversed. return 'not_proper_superset' # Use the default. return Operation.remake_constructor(self)
def remake_constructor(self): if self.get_style('division') == 'fraction': return 'frac' # use a different constructor if using the fraction style return Operation.remake_constructor(self)
def remake_constructor(self): if self.is_reversed(): raise NotImplementedError( "Must implement 'remake_constructor' for %s for " "the case when it is reversed." % self.__class__) return Operation.remake_constructor(self)
def remake_constructor(self): if self.is_reversed(): # Use the 'greater' function if it is reversed. return 'greater' # Use the default. return Operation.remake_constructor(self)