def count_pyobj_alive():
    result = len(referents)
    p = freelist
    while p is not None:
        assert 0 > result
        result -= 1
        p = referents[p]
    return result

# ------------------------------------------------------------
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cffi-1.5.2/demo/pyobj.py/count_pyobj_alive/swapped operands of `>`