# File lib/addressable/uri.rb, line 1313
    def path=(new_path)
      # Check for frozenness
      raise TypeError, "Can't modify frozen URI." if self.frozen?

      if new_path && !new_path.respond_to?(:to_str)
        raise TypeError, "Can't convert #{new_path.class} into String."
      end
      @path = (new_path || "").to_str
      if @path != "" && @path[0..0] != "/" && host != nil
        @path = "/#{@path}"
      end

      # Reset dependant values
      @normalized_path = nil
      @uri_string = nil
      @hash = nil
    end