original_docstring: Return result at the given index, or a ResultSet.
docstring: Return result at the given index, or a ResultSet.
docstring_tokens: Return result at the given index or a ResultSet .
code: def result(self, index):
  		"""Return result at the given index, or a ResultSet."""
  		if isinstance(index, slice):
  			return self.__class__(self.results[index])
  
  		# Return this result, wrapped via result_class if needed
  		result = self.results[index]
  		try:
  			if isinstance(result, self.result_class):
  				# Directly return the result
  				return result
  		except TypeError:
  			# Catched to allow result_class to be any callable
  			pass
  
  		try:
  			# In case the appended result something like a Result object (although not a subclass of result_class)
  			result = result.results
  		except AttributeError:
  			pass
  
  		return self.result_class(result)
code_tokens: def result ( self , index ) : if isinstance ( index , slice ) : return self . __class__ ( self . results [ index ] ) result = self . results [ index ] try : if isinstance ( result , self . result_class ) : return result except TypeError : pass try : result = result . results except AttributeError : pass return self . result_class ( result )
short_docstring: Return result at the given index, or a ResultSet.
short_docstring_tokens: Return result at the given index or a ResultSet .
comment: """Return result at the given index, or a ResultSet."""$SEP$# Return this result, wrapped via result_class if needed$SEP$# Directly return the result$SEP$# Catched to allow result_class to be any callable$SEP$# In case the appended result something like a Result object (although not a subclass of result_class)