{ } Raw JSON

bundles / IPython 9.17.0 / IPython / utils / ipstruct / Struct / __isub__

function

IPython.utils.ipstruct:Struct.__isub__

source: /dev/ipython/IPython/utils/ipstruct.py:194

Signature

def __isub__(self, other)

Summary

Inplace remove keys from self that are in other.

Examples

s1 = Struct(a=10,b=30)
s2 = Struct(a=40)
s1 -= s2
s1
✓
{'b': 30}

Aliases

  • IPython.core.interactiveshell.Struct.__isub__