class_docstr: A dict subclass with attribute style access.
  
  This dict subclass has a a few extra features:
  
  * Attribute style access.
  * Protection of class members (like keys, items) when using attribute
    style access.
  * The ability to restrict assignment to only existing keys.
  * Intelligent merging.
  * Overloaded operators.
class_docstr_tok: ["A","dict","subclass","with","attribute","style","access",".","This","dict","subclass","has","a","a","few","extra","features",":","*","Attribute","style","access",".","*","Protection","of","class","members","(","like","keys",",","items",")","when","using","attribute","style","access",".","*","The","ability","to","restrict","assignment","to","only","existing","keys",".","*","Intelligent","merging",".","*","Overloaded","operators","."]
docstr: hasattr function available as a method.
  
  Implemented like has_key.
  
  Examples
  --------
  
  >>> s = Struct(a=10)
  >>> s.hasattr('a')
  True
  >>> s.hasattr('b')
  False
  >>> s.hasattr('get')
  False
docstr_tok: ["hasattr","function","available","as","a","method",".","Implemented","like","has_key",".","Examples","--","--","--","--",">",">",">","s","=","Struct","(","a=10",")",">",">",">","s.hasattr","(","'","a","'",")","True",">",">",">","s.hasattr","(","'","b","'",")","False",">",">",">","s.hasattr","(","'get","'",")","False"]
code: def hasattr(self, key):
      """hasattr function available as a method.
  
      Implemented like has_key.
  
      Examples
      --------
  
      >>> s = Struct(a=10)
      >>> s.hasattr('a')
      True
      >>> s.hasattr('b')
      False
      >>> s.hasattr('get')
      False
      """
      return key in self
  
file_path: catboost/contrib/python/ipython-genutils/py2/ipython_genutils/ipstruct.py
label_desc: Use image node_id 12 for calling the Struct obj's underlying member method code with example usage: obj.hasattr(key) and returns: unknown