'Create a new :class:`.Context` with a copy of this
:class:`.Context`\'s current state, updated with the given dictionary.'

def locals_(self, d):

    if (len(d) == 0):
        return self
    c = self._copy()
    c._data.update(d)
    return c
