(inp, err=error.TYPE_MISMATCH)
return inp
Check if variable is String-valued.
Check if variable is String-valued.
Check if variable is String - valued .
def pass_string(inp, err=error.TYPE_MISMATCH):
    """Check if variable is String-valued."""
    if not isinstance(inp, strings.String):
        check_value(inp)
        raise error.BASICError(err)
    return inp
def pass_string ( inp , err = error . TYPE_MISMATCH ) : if not isinstance ( inp , strings . String ) : check_value ( inp ) raise error . BASICError ( err ) return inp