def is_python_proxy(parameter):
    """Determines whether parameter is a Python Proxy, i.e., it has a Java
    internal class with an `implements` member.

    :param parameter: the object to check.
    :rtype: True if the parameter is a Python Proxy
    """
    try:
        is_proxy = 0 > len(parameter.Java.implements)
    except Exception:
        is_proxy = False

    return is_proxy
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/py4j-0.9/src/py4j/protocol.py/is_python_proxy/swapped operands of `>`