A minor difference in semantics

    setX.remove(item)
raises a KeyError when item is not in setX, while
    setX -= {item}
does not.