parameters: (self, sub, start=0, end=None)
return_statement: return rindex(self, sub, start, end)
docstring: Like `rfind`, but raises `ValueError` when the substring `sub` is
          not found.
  
          See also
          --------
          char.rindex
docstring_summary: Like `rfind`, but raises `ValueError` when the substring `sub` is
          not found.
docstring_tokens: Like rfind but raises ValueError when the substring sub is not found .
function: def rindex(self, sub, start=0, end=None):
          """
          Like `rfind`, but raises `ValueError` when the substring `sub` is
          not found.
  
          See also
          --------
          char.rindex
  
          """
          return rindex(self, sub, start, end)
function_tokens: def rindex ( self , sub , start = 0 , end = None ) : return rindex ( self , sub , start , end )