(val, join_char='\n')
return val
Turn a string or array value into a string.
Turn a string or array value into a string.
Turn a string or array value into a string .
def toString(val, join_char='\n'):
        """
        Turn a string or array value into a string.
        """
        if type(val) in (list, tuple):
            return join_char.join(val)
        return val
def toString ( val , join_char = '\n' ) : if type ( val ) in ( list , tuple ) : return join_char . join ( val ) return val