def cmp(a, b):
        if a < b:
            return -1
        elif a == b:
            return 0
        else:
            return 1
Compare two objects.
dataset/ETHPy150Open twisted/twisted/twisted/python/compat.py/cmp