original_docstring: Return a ResultSet with the results that all have a certain value for a given key.
  		
  		The returned object is created with the cls parameter, so a class the return value should be a type of can be
  		passed there (cls needs to behave like the ResultSet constructor to work of course).
  		A overridden or a future version of this method may support more filter expressions than comparison for
  		equality.
  
  		:param key: The key for the fields of the results that should be tested against the expected.
  		:param expected: The expected value, only results that have this value for mapped to the key are returned.
  		:param cls: The class for the returned object, None (default) for a ResultSet. Could also be any other callable.
  		:return: A ResultSet (or another type when the cls parameter is used) with all results of this one, that have
  			the expected value for a certain key.
  		
docstring: Return a ResultSet with the results that all have a certain value for a given key.
  The returned object is created with the cls parameter, so a class the return value should be a type of can be
  passed there (cls needs to behave like the ResultSet constructor to work of course).
  A overridden or a future version of this method may support more filter expressions than comparison for
  equality.
docstring_tokens: Return a ResultSet with the results that all have a certain value for a given key . The returned object is created with the cls parameter so a class the return value should be a type of can be passed there ( cls needs to behave like the ResultSet constructor to work of course ) . A overridden or a future version of this method may support more filter expressions than comparison for equality .
code: def where(self, key, expected, cls=None):
  		"""Return a ResultSet with the results that all have a certain value for a given key.
  		
  		The returned object is created with the cls parameter, so a class the return value should be a type of can be
  		passed there (cls needs to behave like the ResultSet constructor to work of course).
  		A overridden or a future version of this method may support more filter expressions than comparison for
  		equality.
  
  		:param key: The key for the fields of the results that should be tested against the expected.
  		:param expected: The expected value, only results that have this value for mapped to the key are returned.
  		:param cls: The class for the returned object, None (default) for a ResultSet. Could also be any other callable.
  		:return: A ResultSet (or another type when the cls parameter is used) with all results of this one, that have
  			the expected value for a certain key.
  		"""
  		key = self.parse_attrs(key)
  		cls = cls or ResultSet
  		ret = []
  		for res in self.results:
  			r = res
  			for subkey in key:
  				try:
  					r = r[subkey]
  				except (KeyError, TypeError):
  					r = KeyError
  					break
  			if r == expected:
  				ret.append(res)
  		return cls(ret)
code_tokens: def where ( self , key , expected , cls = None ) : key = self . parse_attrs ( key ) cls = cls or ResultSet ret = [ ] for res in self . results : r = res for subkey in key : try : r = r [ subkey ] except ( KeyError , TypeError ) : r = KeyError break if r == expected : ret . append ( res ) return cls ( ret )
short_docstring: Return a ResultSet with the results that all have a certain value for a given key.
short_docstring_tokens: Return a ResultSet with the results that all have a certain value for a given key .
comment: """Return a ResultSet with the results that all have a certain value for a given key.
  		
  		The returned object is created with the cls parameter, so a class the return value should be a type of can be
  		passed there (cls needs to behave like the ResultSet constructor to work of course).
  		A overridden or a future version of this method may support more filter expressions than comparison for
  		equality.
  
  		:param key: The key for the fields of the results that should be tested against the expected.
  		:param expected: The expected value, only results that have this value for mapped to the key are returned.
  		:param cls: The class for the returned object, None (default) for a ResultSet. Could also be any other callable.
  		:return: A ResultSet (or another type when the cls parameter is used) with all results of this one, that have
  			the expected value for a certain key.
  		"""