(arg)
Convert an argument to an iterable. The argument can be a None, single
    value, or an iterable.

    Exception: if arg is a dict, [arg] will be returned
Convert an argument to an iterable. The argument can be a None, single
    value, or an iterable.
Convert an argument to an iterable . The argument can be a None single value or an iterable .
def arg_to_iter(arg):
    """Convert an argument to an iterable. The argument can be a None, single
    value, or an iterable.

    Exception: if arg is a dict, [arg] will be returned
    """
    if arg is None:
        return []
    elif not isinstance(arg, _ITERABLE_SINGLE_VALUES) and hasattr(arg, '__iter__'):
        return arg
    else:
        return [arg]
def arg_to_iter ( arg ) : if arg is None : return [ ] elif not isinstance ( arg , _ITERABLE_SINGLE_VALUES ) and hasattr ( arg , '__iter__' ) : return arg else : return [ arg ]