This is a development version (9.14.0.dev) and may be unstable. Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.14.0.dev / IPython / utils / ipstruct / Struct / allow_new_attr

function

IPython.utils.ipstruct:Struct.allow_new_attr

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

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