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

bundles / IPython latest / IPython / utils / ipstruct / Struct / __init__

function

IPython.utils.ipstruct:Struct.__init__

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

Signature

def   __init__ ( self * args ** kw )

Summary

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
s.b
s2 = Struct(s,c=30)
sorted(s2.keys())

Aliases

  • IPython.core.interactiveshell.Struct.__init__