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: Initialize with a dictionary, another Struct, or data.
  
  Parameters
  ----------
  args : dict, Struct
      Initialize with one dict or Struct
  kw : dict
      Initialize with key, value pairs.
  
  Examples
  --------
  
  >>> s = Struct(a=10,b=30)
  >>> s.a
  10
  >>> s.b
  30
  >>> s2 = Struct(s,c=30)
  >>> sorted(s2.keys())
  ['a', 'b', 'c']
docstr_tok: ["Initialize","with","a","dictionary",",","another","Struct",",","or","data",".","Parameters","--","--","--","--","--","args",":","dict",",","Struct","Initialize","with","one","dict","or","Struct","kw",":","dict","Initialize","with","key",",","value","pairs",".","Examples","--","--","--","--",">",">",">","s","=","Struct","(","a=10",",","b=30",")",">",">",">","s.a","10",">",">",">","s.b","30",">",">",">","s2","=","Struct","(","s",",","c=30",")",">",">",">","sorted","(","s2.keys","(",")",")","[","'","a","'",",","'","b","'",",","'","c","'","]"]
code: def __init__(self, *args, **kw):
      """Initialize with a dictionary, another Struct, or data.
  
      Parameters
      ----------
      args : dict, Struct
          Initialize with one dict or Struct
      kw : dict
          Initialize with key, value pairs.
  
      Examples
      --------
  
      >>> s = Struct(a=10,b=30)
      >>> s.a
      10
      >>> s.b
      30
      >>> s2 = Struct(s,c=30)
      >>> sorted(s2.keys())
      ['a', 'b', 'c']
      """
      object.__setattr__(self, "_allownew", True)
      dict.__init__(self, *args, **kw)
  
file_path: catboost/contrib/python/ipython-genutils/py2/ipython_genutils/ipstruct.py
label_desc: Use image node_id 1 to create a new Struct object from inherited base classes: dict with example: obj = Struct()