parameters: (self, key)
return_statement: return any(item.name == key for item in self.list)
docstring: Dictionary style __contains__ method.
docstring_summary: Dictionary style __contains__ method.
docstring_tokens: Dictionary style __contains__ method .
function: def __contains__(self, key):
          """Dictionary style __contains__ method."""
          if self.list is None:
              raise TypeError, "not indexable"
          return any(item.name == key for item in self.list)
function_tokens: def __contains__ ( self , key ) : if self . list is None : raise TypeError , "not indexable" return any ( item . name == key for item in self . list )