parameters: (obj)
return_statement: return True
docstring: Check whether obj behaves like a string.
docstring_summary: Check whether obj behaves like a string.
docstring_tokens: Check whether obj behaves like a string .
function: def _is_string_like(obj):
      """
      Check whether obj behaves like a string.
      """
      try:
          obj + ''
      except (TypeError, ValueError):
          return False
      return True
function_tokens: def _is_string_like ( obj ) : try : obj + '' except ( TypeError , ValueError ) : return False return True