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