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: Set whether new attributes can be created in this Struct.
  
  This can be used to catch typos by verifying that the attribute user
  tries to change already exists in this Struct.
docstr_tok: ["Set","whether","new","attributes","can","be","created","in","this","Struct",".","This","can","be","used","to","catch","typos","by","verifying","that","the","attribute","user","tries","to","change","already","exists","in","this","Struct","."]
code: def allow_new_attr(self, allow=True):
      """Set whether new attributes can be created in this Struct.
  
      This can be used to catch typos by verifying that the attribute user
      tries to change already exists in this Struct.
      """
      object.__setattr__(self, "_allownew", allow)
  
file_path: catboost/contrib/python/ipython/py3/IPython/utils/ipstruct.py
label_desc: Use image node_id 13 for calling the Struct obj's underlying member method code with example usage: obj.allow_new_attr(allow) without return types