(values)
return retVal
Returns only list-like values with length 2

    >>> filterPairValues([[1, 2], [3], 1, [4, 5]])
    [[1, 2], [4, 5]]
Returns only list-like values with length 2
Returns only list - like values with length 2
def filterPairValues(values):
    """
    Returns only list-like values with length 2

    >>> filterPairValues([[1, 2], [3], 1, [4, 5]])
    [[1, 2], [4, 5]]
    """

    retVal = []

    if not isNoneValue(values) and hasattr(values, '__iter__'):
        retVal = filter(lambda x: isinstance(x, (tuple, list, set)) and len(x) == 2, values)

    return retVal
def filterPairValues ( values ) : retVal = [ ] if not isNoneValue ( values ) and hasattr ( values , '__iter__' ) : retVal = filter ( lambda x : isinstance ( x , ( tuple , list , set ) ) and len ( x ) == 2 , values ) return retVal