'@return: self'

def update(self, otherdict):

    assert self._assert_invariants()
    for (k, v) in otherdict.iteritems():
        assert self._assert_invariants()
        self[k] = v
        assert self._assert_invariants()
