def _make_cmp(self, set_op, doc):
def comparer(self, that):<EOL><INDENT>"<STR_LIT>"<EOL>if isinstance(that, SortedSet):<EOL><INDENT>return set_op(self._set, that._set)<EOL><DEDENT>elif isinstance(that, Set):<EOL><INDENT>return set_op(self._set, that)<EOL><DEDENT>return NotImplemented<EOL><DEDENT>comparer.__name__ = '<STR_LIT>'.format(set_op.__name__)<EOL>doc_str = '<STR_LIT>'<EOL>comparer.__doc__ = doc_str.format(doc)<EOL>return comparer<EOL>
Make comparator method.