def __new__(mcs, name, bases, cls_dict):
    """Return a new class with predefined comparison operators"""
    for method_name in ('__lt__', '__le__', '__gt__', '__ge__', '__eq__',
        '__ne__'):
        if method_name not in cls_dict:
            cls_dict[method_name] = mcs._make_operator(method_name)
    return type.__new__(mcs, name, bases, cls_dict)
