You are viewing an older version (9.11.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.11.0 / IPython / utils / ipstruct / Struct / allow_new_attr

function

IPython.utils.ipstruct:Struct.allow_new_attr

source: /IPython/utils/ipstruct.py :255

Signature

def   allow_new_attr ( self allow = True )

Summary

Set whether new attributes can be created in this Struct.

Extended Summary

This can be used to catch typos by verifying that the attribute user tries to change already exists in this Struct.

Aliases

  • IPython.core.interactiveshell.Struct.allow_new_attr