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

bundles / IPython latest / IPython / utils / ipstruct / Struct / __isub__

function

IPython.utils.ipstruct:Struct.__isub__

source: /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__