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

bundles / IPython 9.10.0 / IPython / utils / ipstruct / Struct / __add__

function

IPython.utils.ipstruct:Struct.__add__

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

Signature

def   __add__ ( self other )

Summary

s + s2 -> New Struct made from s.merge(s2).

Examples

s1 = Struct(a=10,b=30)
s2 = Struct(a=20,c=40)
s = s1 + s2
sorted(s.keys())
['a', 'b', 'c']

Aliases

  • IPython.core.interactiveshell.Struct.__add__