(value)
Returns whether the value is unusable (None or '')

    >>> isNoneValue(None)
    True
    >>> isNoneValue('None')
    True
    >>> isNoneValue('')
    True
    >>> isNoneValue([])
    True
    >>> isNoneValue([2])
    False
Returns whether the value is unusable (None or '')
Returns whether the value is unusable ( None or )
def isNoneValue(value):
    """
    Returns whether the value is unusable (None or '')

    >>> isNoneValue(None)
    True
    >>> isNoneValue('None')
    True
    >>> isNoneValue('')
    True
    >>> isNoneValue([])
    True
    >>> isNoneValue([2])
    False
    """

    if isinstance(value, basestring):
        return value in ("None", "")
    elif isListLike(value):
        return all(isNoneValue(_) for _ in value)
    elif isinstance(value, dict):
        return not any(value)
    else:
        return value is None
def isNoneValue ( value ) : if isinstance ( value , basestring ) : return value in ( "None" , "" ) elif isListLike ( value ) : return all ( isNoneValue ( _ ) for _ in value ) elif isinstance ( value , dict ) : return not any ( value ) else : return value is None