bundles / IPython 9.17.0 / IPython / utils / ipstruct / Struct / __init__
function
IPython.utils.ipstruct:Struct.__init__
Signature
def __init__(self, *args, **kw)Summary
Initialize with a dictionary, another Struct, or data.
Parameters
*args: dict, StructInitialize with one dict or Struct
**kw: dictInitialize with key, value pairs.
Examples
s = Struct(a=10,b=30) s.a s.b s2 = Struct(s,c=30) sorted(s2.keys())✓
['a', 'b', 'c']
Aliases
IPython.core.interactiveshell.Struct.__init__