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 / __iadd__

function

IPython.utils.ipstruct:Struct.__iadd__

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

Signature

def   __iadd__ ( self other )

Summary

s += s2 is a shorthand for s.merge(s2).

Examples

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

Aliases

  • IPython.core.interactiveshell.Struct.__iadd__