parameters: (value)
return_statement: return result
docstring: Return the value as a list or a type-specific default value if it fails.
docstring_summary: Return the value as a list or a type-specific default value if it fails.
docstring_tokens: Return the value as a list or a type - specific default value if it fails .
function: def asList(value):
    """
      Return the value as a list or a type-specific default value if it fails.
    """
    if isinstance(value, (list, tuple)):
      result = list(value)
    elif isinstance(value, str):
      result = value.split()
    else:
      result = [value]
    return result
function_tokens: def asList ( value ) : if isinstance ( value , ( list , tuple ) ) : result = list ( value ) elif isinstance ( value , str ) : result = value . split ( ) else : result = [ value ] return result