+ # During a copy of this class we shouldn't be updating the environment, otherwise
+ # it becomes impossible to do a non-destructive Clone of the environment...
+ # A copy isn't technically a valid copy either, since now both point to the same
"""This is a dictionary-like class used by an Environment to hold
the Builders. We need to do this because every time someone changes
the Builders in the Environment's BUILDERS dictionary, we must
# because it will end up calling our other methods, which will
# need to point the values in this dictionary to self.env.
return self.__class__(self.data, self.env)
UserDict.__setitem__(self, item, val)
- BuilderWrapper(self.env, val, item)
+ BuilderWrapper(self.env, val, item)
def __delitem__(self, item):